For logging, should nodays be using the Commons logger (instead of directly referencing log4j).
ie:
public class MyClass {private static final Log LOG = LogFactory.getLog(MyClass.class);}Levels:
static Level DEBUG - The DEBUG Level designates fine-grained informational
events that are most useful to debug an application.
static Level INFO - The INFO level designates informational messages that
highlight the progress of the application at coarse-grained level.
static Level WARN - The WARN level designates potentially harmful situations.
static Level ERROR - The ERROR level designates error events that might still
allow the application to continue running.
static Level FATAL - The FATAL level designates very severe error events that
will presumably lead the application to abort.
Ref:
http://www.allapplabs.com/log4j/log4j_appenders.htm
Additinal logging toolsets:
AuditLog:
http://www.acelet.org/_auditlog/AuditLog.html