0

Create your own Log format with log4cpp::PatternLayout

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

log4cpp::PatternLayout supports four different patterns of log format. But it also supports user specified format. For this purpose, it gives certain format chracters. Some of them are %d: Date %m: log message %n: line separator %p: priority For more such characters refer PatternLayout. The additional benefit of using a format of your own is that [...]

Tags: , , , , , , ,

 
0

log4cpp::SimpleLayout – A Simple Layout for log4cpp logs

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

log4cpp supports three different Layouts, one of which is the SimpleLayout. log4cpp::SimpleLayout has the following format for every log message priority message where priority is one of the different values like DEBUG, WARN, NOTICE, INFO, CRIT, ERROR and the message is the same as the string which you want to print. Initializing a SimpleLayout is [...]

Tags: , , , , , ,

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