Log4Cpp Tutorial
Posted by Joys of Programming on in C/C++
log4cpp is used for logging in C++. Given below is the log4cpp tutorial. The tutorial explains the various features of log4cpp with examples.
log4cpp Tutorial
- Introduction to Logging
- log4cpp for logging in C++
- Installation of log4cpp
- Install log4cpp from sources
- A sample Log4cpp Example
- Compile and link log4cpp programs
- Three Important Steps for Log4cpp programming
- Destination of Logs log4cpp::Appender
- Logging into Files: log4cpp::FileAppender
- Logging to Standard Output log4cpp::OstreamAppender
- Rolling Back and Backing up Log files log4cpp::RollingFileAppender
- Manipulating and Accessing Logs lo4cpp::StringQueueAppender
- Logging to System Logs log4cpp::SyslogAppender
- Layout of Logs
- Simple Layout log4cpp::SimpleLayout
- Basic Layout log4cpp::BasicLayout
- Pattern Layout log4cpp::PatternLayout
- Create your own log4cpp Layout
- Configuring log4cpp
- Configure log4cpp with configuration files log4cpp::PropertyConfigurator
- Priority and Events
- Category
- Exceptions
- Multiple Log Files
This is a comprehensive tutorial on log4cpp describing the important features of log4cpp. For a full exhaustive list, check log4cpp hierarchical index.
Please leave your comments and suggestions.Your suggestions will help us to improve better.
Comments: