I have configured a SocketServer to save output to log/log.xml, and it
works - almost.
I start up the server with no problem. Then the first time I use my
logger the log.xml is created but nothing is written to it and I get
this exception:
INFO SocketServer.main(SocketServer.java:109) :
Yes that's what I was thinking of doing also. But then I think, why no go
the extra step and have the parameter class wrap the correct logger. I think
I am leaning that way. Plus I'm performance paranoid for some of the logs,
want to just reuse objects as much as I can.
- Original Message
Hello,
Is there a way to configure Log4J so that one appender
will output commands in one logging level, and another
in a different level?
For example, console appender will be configured for
Error level , and file appender for debug level?
Thanks,
Yuval E.
Hello,
Is there a way to configure Log4J so that one appender
will output commands in one logging level, and another
in a different level?
For example, console appender will be configured for
Error level , and file appender for debug level?
Thanks,
Yuval E.
Of course that is possible. Just put filters on your logstatements...
Like this:
appender name=FILE class=org.apache.log4j.FileAppender
param name=File value=debug_and_info.log/
param name=DatePattern value=_MMdd_HHmm/
layout class=org.apache.log4j.PatternLayout
I trying to set up a repository selector based on Ceki's doc
http://qos.ch/containers/sc.html .
I put the CRS class in $TOMAT_HOME/shared/lib and added the following to my
Log4jInit class before running any configurator:
Object guard = new Object();
LogManager.setRepositorySelector(new
Hi,
I have a problem with the SNMP Trap Appender in that my machine's IP Address
is coming out as 49.50.55.46.48.46.48.46.49 from a config that looks like:
log4j.appender.TRAP_LOG.LocalIPAddress=127.0.0.1
Of course what's happening is that the SnmpOctetString class in the JoeSnmp
Hi Steve,
Ahh, brilliant!
the SnmpOctetString class in the JoeSnmp implementation is treating the IP Address
String as a list of bytes, so what I get in the trap is the ascii values of my String
IP Address.
Yes, this had been reported before, but the report was not specific enough
Add interface:
public abstract interface SysupTimeResolver {
public abstract long getSysupTime();
}
Add the following to SNMPAppender:
private static final SysupTimeResolver DEFAULT_SYSUP_TIME_RESOLVER =
new SysupTimeResolver() {
long time = System.currentTimeMillis();
and of course, remove the setSysupTime() etc. This is rarely used
anyway since one generally don't want to keep track of actual appenders and
specially not in form of their types (in this case SNMPAppender).
--
Thomas
| -Original Message-
| From: Thomas Muller [mailto:[EMAIL
Hi,
The class org.apache.log4j.or.jms.MessageRenderer is missing from the jar
file
in the version 1.2.7.
Was it intended?
Cheers Robert
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi Thomas,
That's purty! :-) I'll add it and list you as author/contributor. I am reluctant to
just kill the #setSysUpTime method/property, for backwards compatibility reasons, but
I did deprecate it, and modify the appender to use the resolver's value whenever the
sysUpTime property is
Greetings,
There's a new release of the appender on my Web site. This release includes a fix for
the string vs. byte array bug reported by Steve Meyfroidt, and the SysupTimeResolver
idea contributed by Thomas Muller.
http://www.m2technologies.net/ -- Data - SNMPTrapAppender
Enjoy.
Hi
I have been trying to write user define property in log message but could
not succeed.
Config snippet:
appender name=jdbc class=org.apache.log4j.jdbc.JDBCAppender
param name=Threshold value=DEBUG/
param name=URL value=blah/
param name=user value=blah/
param name=password
No one else has set up a repository selector? hmm Can someone please
comment on below? Thanks
Jake
At 10:23 AM 10/15/2002 -0500, you wrote:
I trying to set up a repository selector based on Ceki's doc
http://qos.ch/containers/sc.html .
I put the CRS class in $TOMAT_HOME/shared/lib
15 matches
Mail list logo