[ start | index | login ]

Logging

Created by mpecher. Last edited by mpecher, 3 years and 290 days ago. Viewed 896 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
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
no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< February 2012 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829


Logged in Users: (1)
… and 9 Guests.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.