I want that everytime when log4cxx creates new log file it would write special string on top (as the first message) of the log file.
How can I force it to do so ?
Thank You!
I want that everytime when log4cxx creates new log file it would write special string on top (as the first message) of the log file.
How can I force it to do so ?
Thank You!
You can create your layout from
log4cxx::PatternLayout
and reimplementappendHeader()
, this function is called fromlog4cxx::FileAppender::setFile()
(throughlog4cxx::WriterAppender::writeHeader()
)when file created.