log4cpp::PatternLayout – Available log4cpp log formats
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 [...]
Create your own Log format with log4cpp::PatternLayout
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 [...]