source: trunk/tools/log4j.properties @ 6182

Revision 6182, 749 bytes checked in by curtis, 10 years ago (diff)

Fix up logging with Bio-Formats command line tools.
This removes the hard dependency on log4j in Bio-Formats, so it should be
possible to log with other logging frameworks via SLF4J now. There is also
a log4j configuration filein the tools folder now, which should make it easier
to configure output for debugging, stack traces, etc.

Line 
1#
2# log4j.properties
3#
4
5# A log4j configuration for the Bio-Formats command line tools.
6
7# By default, running various main methods in the codebase yields the error:
8
9# log4j:WARN No appenders could be found for logger (loci.formats.FilePattern).
10# log4j:WARN Please initialize the log4j system properly.
11
12# You can avoid the problem by including this file's
13# containing directory on the classpath.
14
15# And of course, you can edit this file to configure how output is produced.
16
17log4j.rootCategory=INFO, stdout
18log4j.appender.stdout=org.apache.log4j.ConsoleAppender
19log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
20log4j.appender.stdout.layout.ConversionPattern=%m%n
21#log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
Note: See TracBrowser for help on using the repository browser.