SocketServer error

2002-10-15 Thread Thomas Saxtoft
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) :

Re: Formal parameter ideas?

2002-10-15 Thread Rick LaBanca
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

Log level and appenders

2002-10-15 Thread j d
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.

Log level and appenders

2002-10-15 Thread j d
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.

RE: Log level and appenders

2002-10-15 Thread MALLER Stijn (BMB)
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

RepositorySelector question...

2002-10-15 Thread Jacob Kjome
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

Joe SNMP facade bug

2002-10-15 Thread Steve Meyfroidt
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

RE: Joe SNMP facade bug

2002-10-15 Thread Mark Masterson
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

SnmpAppender extention suggestion (was: RE: Joe SNMP facade bug)

2002-10-15 Thread Thomas Muller
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();

RE: SnmpAppender extention suggestion (was: RE: Joe SNMP facade bug)

2002-10-15 Thread Thomas Muller
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

MessageRenderer.class missing from jar file in 1.2.7

2002-10-15 Thread Robert Gottofrey
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]

RE: SnmpAppender extention suggestion

2002-10-15 Thread Mark Masterson
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

SNMPTrapAppender v. 1.2.1

2002-10-15 Thread Mark Masterson
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.

Userdefind property

2002-10-15 Thread Parmar, Dipakkumar
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

Re: RepositorySelector question...

2002-10-15 Thread Jacob Kjome
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