Module: Logging::Layouts
- Extended by:
- Layouts
- Included in:
- Layouts
- Defined in:
- lib/logging/layouts.rb,
lib/logging/layouts/basic.rb,
lib/logging/layouts/pattern.rb,
lib/logging/layouts/parseable.rb
Defined Under Namespace
Classes: Basic, Parseable, Pattern
Instance Method Summary collapse
-
#basic(*args) ⇒ Object
Accessor / Factory for the Basic layout.
-
#json(*args) ⇒ Object
Factory for the Parseable layout using JSON formatting.
-
#parseable ⇒ Object
Accessor for the Parseable layout.
-
#pattern(*args) ⇒ Object
Accessor / Factory for the Pattern layout.
-
#yaml(*args) ⇒ Object
Factory for the Parseable layout using YAML formatting.
Instance Method Details
#basic(*args) ⇒ Object
Accessor / Factory for the Basic layout.
7 8 9 10 |
# File 'lib/logging/layouts.rb', line 7 def basic( *args ) return ::Logging::Layouts::Basic if args.empty? ::Logging::Layouts::Basic.new(*args) end |
#json(*args) ⇒ Object
Factory for the Parseable layout using JSON formatting.
27 28 29 |
# File 'lib/logging/layouts.rb', line 27 def json( *args ) ::Logging::Layouts::Parseable.json(*args) end |
#parseable ⇒ Object
Accessor for the Parseable layout.
21 22 23 |
# File 'lib/logging/layouts.rb', line 21 def parseable ::Logging::Layouts::Parseable end |