robbiehanson/CocoaLumberjack — Issue #16: Allow header/footer in DDLogFormatter
Author: chrisdolan
Created: 2011-12-28 21:03:43+00:00
State: open

In some log file syntaxes (like XML) it's useful for the log formatter to support a header and footer method that are invoked at the beginning and end of the log stream. For plain text log formats, these will be the empty string.

Please either add header and footer methods to the DDLogFormatter protocol, or add a new protocol with those methods that is checked and invoked when a new log file is opened or closed.

Consider the Layout interface of the Java Logback framework: https://github.com/ceki/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/Layout.java