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
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
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)
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
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--
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
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
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
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
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
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
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
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--
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
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
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
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
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
18 matches
Mail list logo