Re: Creating custom levels

2005-06-23 Thread Carol Enderlin
Look for XLevel.java in log4j distribution directory like : logging-log4j-1.2.9\examples\customLevel Then the trick to using it is to specify the level with the name of the level plus # plus fully qualified classname like: log4j.rootLogger=TRACE#customlevel.XLevel, STDOUT On 6/23/05, Joseph Sar

Re: R: Creating our own logger

2005-06-23 Thread Tan Kah Siong
I probably have the same situation as yours. My application has an internal logging function, however, i thought that a more advanced viewer would be more appropiate. Basically we can just use the receivers (db, file or socket...etc) to act as the 'medium'. From what i understand from the receive

org/apache/log4j/spi/NullWriter

2005-06-23 Thread Dave
Lets try again I am using the 1.3.0alpha6 I am having a little problem with logger.warn(" some string", throwable) I get the following log4j output java.lang.NoClassDefFoundError: org/apache/log4j/spi/NullWriter at org.apache.log4j.spi.ThrowableInformation.(ThrowableInformation.java:49)

Log4j and JMS

2005-06-23 Thread Schuweiler, Joel J.
While I don't know much about jms would this perhaps be a route to take for logging to different files on a remote machine from a cluster full of many applications? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Chainsaw and custom LogPanel

2005-06-23 Thread Scott Deboy
Hi Ivan This is a feature we'd like to support but haven't had the time. If you'd like to see tabs by level as the default view for how events show up in Chainsaw, you can change the 'tab identifier' and events will route by default to unique tabs for each level. Scott -Original Message--

SocketServer check for incoming hostname

2005-06-23 Thread Schuweiler, Joel J.
I'm looking for documentation on the SocketServer, there doesn't appear to be a lot of information in the api. I was wondering if it can check what hostname the client used to connect to it at? Joel Schuweiler Middleware [EMAIL PROTECTED] Tel: 8-7900

Chainsaw and custom LogPanel

2005-06-23 Thread Ivan Linhares Martins
Hi, i´m working with Chainsaw v2 and "custom expression LogPanels". The question is that I have many custom panels and I need to create them every time I open the application. Isn´t there a way to configure these panels automatically? in chainsaw.xml for example. My case is that I have many tabs

R: Creating our own logger

2005-06-23 Thread Fabrizio Squittieri
In truth i thought to store those infos in our Logger class when we create it. Then our software would just call debug,info,warn,error and fatal and the Logger would attach these infos to and send a String to log4j with optional object and/or exception... Am i right in this way? I tried to unders

Re: Creating our own logger

2005-06-23 Thread James Stauffer
I had a similiar situation and I made our internal Logger class just pass the event to log4j. You can store userAddress and userName in MDC. Then weather the code uses the internal logger or log4j directly it still ends up in the same place. The only thing is that code using the internal logger

Re: Creating custom levels

2005-06-23 Thread James Stauffer
I can't find it off hand either but it involves extending the level class. On 6/23/05, Joseph Sartre <[EMAIL PROTECTED]> wrote: > I really can't find anything really clear enough. Anybody have any > suggestions about where I can find something or how i could create this > custom level which would

1.3 timeline

2005-06-23 Thread Schuweiler, Joel J.
Is anyone aware of how long it will be until 1.3 moves out of alpha? I realize this is tough to judge but I'm looking for any information you can provide. I see that they are completely re-vamping the naming scheme for many classes, are there any other significant changes? Is there somewhere on

RE: Creating our own logger

2005-06-23 Thread Lutz Michael
btw, what I meant by "what you're doing is very common" means ... it's common to wrap Log4j. Just don't use inheritance. -Original Message- From: Lutz Michael Sent: Thursday, June 23, 2005 9:06 AM To: Log4J Users List Subject: RE: Creating our own logger read the Log4j manual that dis

RE: Creating our own logger

2005-06-23 Thread Lutz Michael
read the Log4j manual that discusses how to do this properly. You'll note in the book it states to NOT extend Logger. Use the wrapper pattern (wrap through aggregation). The book discusses how. There's a PDF version available too. Mike PS What you're doing is very common. -Original Message--

passing value to new column using jdbcappender

2005-06-23 Thread Anindya Bandyopadhyay
Hi All, I'm using log4j JDBCAppender in a web application to log into database. Now I require one new functionality where I need to put the username in log table. I've added a new column in log table called "user" where I'd like to put the username. The username will be obtained from session at

Usage of resource bundle assoc with each logger

2005-06-23 Thread Sumeet Das
Can anyone tell me What all parameters are possible inside the log4j.properties file. Cud I also mention what resource bundle is to be used by any logger , in case I am using the l17d(...) method. Basically who defines or rather where is it defined what goes inside the log4j.properties file. Bee

Re: Creating custom levels

2005-06-23 Thread Joseph Sartre
I really can't find anything really clear enough. Anybody have any suggestions about where I can find something or how i could create this custom level which would be configurable from an xml config file? Thanks very much Joseph --- Alternative email: [EMAIL PROTECTED] Personal Websit

Creating our own logger

2005-06-23 Thread Fabrizio Squittieri
Hi there, we have an old logger, an "homemade" one and now we want to switch our logging to log4j. We have to cope with the old one for the future as all the model software written until now can't be rewritten to suite the old log. Moreover we want a more powerful Logger class, as we must hold info

RE: Log4j & filtering

2005-06-23 Thread Patrizio.Ferlito
Ciao James, I thank you for your answer. I put: log4j.appender.errorAppender.Threshold=ERROR log4j.appender.infoAppender.Threshold=INFO and it works fine !! I thank you again. Patrizio -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: mercoledì, 22. giugn