On Mon, May 19, 2014 at 9:37 PM, Ralph Goers <[email protected]>wrote:
> It sounds like you want that in the header of the file? That sounds like > an extension of what PatternLayout currently does. You would just want to > set the header to include the pattern. Of course, this doesn’t apply to > Appenders that use some other layout. > Yes in the header. whatever a header means for a text file appender for example, maybe it is a "comment" like a comment in a property file: # my format. This only needs to apply to "unstructured" layouts, which are all text based layouts, like the File and Console, I think these all share a streaming super class/manager. For a database appender and other structured layouts (XML, JSON, and so on), this does not make sense. Gary Gary > > Ralph > > On May 19, 2014, at 12:47 PM, Gary Gregory <[email protected]> wrote: > > I get logs from users that are files, which is nice. > > I'd like the log to have a line that shows the conversion pattern used to > create the log events. > > This would let me create a nice color filter in our tools. > > Yes, I know users could use some kind of structured appender in addition > to a log file, but they won't for my convenience... > > So I wonder if we could have setting for this? Our tools create the > config, so we could turn it on no matter what conversion pattern they use. > > Gary > > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second > Edition<http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
