storck wrote:

> How can I use different log-levels for debug, warn, info, ....?

Hmm.  Unless I don't understand your question, that's one of the most basic
features of log4j.  Did you read the manual
(http://jakarta.apache.org/log4j/docs/manual.html)?  Granted, it can be a bit
confusing.

Anyway, here's a trivial example:

Category c = Category.getInstance("foo");
c.info("This is an info message");
c.debug("This is a debug message");
c.fatal("This is a fatal message");

dwh


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to