0

How to install log-analysis in Ubuntu/Linux?

Posted by Joys of Programming on in Linux

Log-analysis will analyse syslog, wtmp and sulog files in the system in order to summarise information found there. It will also apply a number of known expressions in order to extract relevant data it knows of. Log-analysis can be customized and extended with custom configuration files to detect certain events that are system-dependant. (dpkg package [...]

Tags: , ,

 
0

Create Log4cpp Layout

Posted by Joys of Programming on in C/C++

Apart from the Simple and Basic Layout of log4cpp, you can create your own log pattern using the Pattern Layout. But you can add certain strings to the pattern. If you want to add additional functionality like displaying process ID, hostname using functions like getpid(), gethostbyname(), you need to create your own layout. You can [...]

Tags: , , , ,

 
0

How to direct logs to multiple log files (destinations) – log4cpp

Posted by Joys of Programming on in C/C++

log4cpp can not only be used to log the events to a log file or standard output, but also helps you to log events to multiple destinations. For this purpose, either you can add multiple appenders to a single category or make use of multiple Categories. We will explore the first options. With this option, [...]

Tags: , , , , , , , , , , ,

 
0

log4cpp::PropertyConfigurator – Configure with configuration files

Posted by Joys of Programming on in C/C++

log4cpp can also be configured with the configuration files. log4cpp::PropertyConfigurator can be used for this purpose. It has a single function which takes as input the configuration file. Simply specify the configuration in a file. You must specify the layout, priority and the appender in the configuration file as shown here You can read here [...]

Tags: , , , , , ,

 
1

log4cpp::PatternLayout – Available log4cpp log formats

Posted by Joys of Programming on in C/C++

log4cpp supports three layouts: Simple Layout, Basic Layout and PatternLayout. Simple and Basic Layout are the simplest ones and you need not configure them in any way. The display the log in a fixed format. log4cpp::PatternLayout has the additional advantage that it supports four different formats and provides a mechanism to create a format of [...]

Tags: , , , ,

 
0

OstreamAppender: Direct the log4cpp logs to standard Output

Posted by Joys of Programming on in C/C++

log4cpp enables you to easily log important events. The logs can be directed to files or even periodically rolled back and back up. There are multiple destinations for the log files and you can decide which one to choose from. Though in most cases, you want to use log files, you can also make use [...]

Tags: , , , , , , , , , ,

 
1

log4cpp::RollingFileAppender – How to Backup and Roll Over log files?

Posted by Joys of Programming on in C/C++

It is very important to log the events in your software both for analytics and debugging.  Log4cpp is helpful for logging in with C++. Log4Cpp::File Appender can be used to direct the output of logs to a file. But there are certain challenges that you may face while using log files The files can soon [...]

Tags: , , , , , , , , , , ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.