Log4cxx comprises of three main parts,
1) Public Class Logger
- Top level entry point of Logger
2) Public Interface Appender
- Controlling the Output log operations
3) Public Abstract Class Layout
- Output format
1) Public Class Logger
- Top level entry point of Logger
2) Public Interface Appender
- Controlling the Output log operations
3) Public Abstract Class Layout
- Output format
Log Levels
There about 6 levels of Log Levels. They are; TRACE, DEBUG, INFO, WARN, ERROR, FATAL, also there we have another two levels, "ALL" and "OFF".
When configuring you can setup the Log Levels according to the need of the Logger. The following image describes the Log Levels and Log level accessiblity.
Descriptions of each Level:
DEBUG
Informational logs that is useful to debug an application
INFO
Informational logs that are usefull to highlight the progress the application
WARN
Warning logs describing certain application specific other options
ERROR
Error logs describing events which causes application exceptions, but these exceptions are handled and the application can still run continously.
Fatal logs describing events which cause severe error and leading to application exit.
Link Library to Netbeans Project
In your Netbeans projects, after the installation of Log4cxx, to link the static library to the project, use the following in the LDLIBSOPTIONS of make debug file.
In your Netbeans projects, after the installation of Log4cxx, to link the static library to the project, use the following in the LDLIBSOPTIONS of make debug file.
-I/usr/include pathof(liblog4cxx.a) -lapr-1 -laprutil-1
0 comments:
Post a Comment