Layout: Abstract Class for Layouts

Description Creating a New Layout Methods See Also

Description

Abstract classes are exported for developers that want to extend them, they are not useful to casual users. Layouts get a LogEvent passed down from an Appender, and format them for output. How this formatting works exactly varies widely. For example for file or console output the log event is usually formatted into a single character line.

Creating a New Layout

Layouts are instantiated with <LayoutSubclass>$new(). For a description of the arguments to this function please refer to the Fields section.

Methods

format_event(event)

format a LogEvent

See Also

Other Layouts: LayoutDbi, LayoutFormat, LayoutGlue, LayoutJson


s-fleck/yog documentation built on Jan. 17, 2019, 5:56 a.m.