I'm ashamed to admit it, but for days I've been trying to get log4j up &
running. Despite its simplicity, I'm having a heck of a time *just* getting
the logger instance assigned.
I 'm hoping this is just a stupid, but easily fixable error.
I'm trying to do it programmatically which I thought doesn't require any
config or xml files. I've called the statement in a variety of allegedly
valid ways:
Logger logger = Logger.getLogger( "" );
Logger logger = Logger.getLogger( <className>.class ); //className =
LQSServlet
(etc.)
And even:
Logger logger = Logger.getRootLogger();
Also, I do not have a package declaration in my main servlet so I can't use
the getLogger argument of "<package>.<some name>".
Well, they *ALL* return the same error message:
2002-11-05 17:21:58 - Ctx( ): Exception in: R( + /servlet/LQSServlet +
null) - java.lang.VerifyError: (class: org/apache/log4j/LogManager, method:
<clinit> signature: ()V) Incompatible argument to function
at org.apache.log4j.Logger.getLogger(Logger.java:85)
at LQSServlet.init(LQSServlet.java:50)
....
Do you have any clue at all for me?
Thanks,
Marcia
--
To unsubscribe, e-mail: <mailto:log4j-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@;jakarta.apache.org>