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 [...]
log4cpp::SimpleLayout – A Simple Layout for log4cpp logs
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 [...]