Tuesday, March 4, 2014

java logger

http://www.vogella.com/tutorials/Logging/article.html


  Regarding hierarchical of class: When a logger decides to produce a LogRecord, the logger not only passes the LogRecord to all its attached Handler(s), but it also forwards the LogRecord to its parent logger. The parent logger forwards the LogRecord to all its attached Handler(s) and its parent, without performing level or filter check. Eventually, the LogRecord reaches the root logger. By default, the root logger has a ConsoleHandler (that writes to System.err) with level of INFO.

http://www.ntu.edu.sg/home/ehchua/programming/java/JavaLogging.html

Not printing to output
http://stackoverflow.com/questions/920654/java-logger-only-to-file-no-screen-output

No comments:

Post a Comment