I have another question….
I have several classes in one package with several levels of logs (from DEBUG to ERROR).
In this package, I would like to log all the classes with ERROR level and one class with DEBUG level.
How can I perform this ?
I took a look at the following kind of settings :
microlog.rootLogger=ERROR, A1, A2
you could use the configuration below, but with some small changes. If you have two classes called OneClass and AnotherClass in the com.jayway.midlet.techtip you add the following to the configuration:
Hi,
I have another question….
I have several classes in one package with several levels of logs (from DEBUG to ERROR).
In this package, I would like to log all the classes with ERROR level and one class with DEBUG level.
How can I perform this ?
I took a look at the following kind of settings :
microlog.rootLogger=ERROR, A1, A2
microlog.appender.A1=ConsoleAppender
microlog.appender.A2=RecordStoreAppender
microlog.appender.A1.formatter=PatternFormatter
microlog.appender.A1.formatter.pattern=%c{1} %m %T
microlog.logger.com.jayway.midlet.techtip=DEBUG
But it runs well only with package… sO, not the configuration I need…
thanks for any answer.
regards,
Mikael
Hi,
you could use the configuration below, but with some small changes. If you have two classes called OneClass and AnotherClass in the com.jayway.midlet.techtip you add the following to the configuration:
microlog.logger.com.jayway.midlet.techtip.OneClass=ERROR
microlog.logger.com.jayway.midlet.techtip.AnotherClass=DEBUG
This should work for you….
Regards
Johan
Hi,
it seems that the formatting was not ok. The configuration should be on separate lines.
Regards
Johan