Module: Logging::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
Class 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.
Class Method Details
.basic(*args) ⇒ Object
Accessor / Factory for the Basic layout.
6 7 8 9 |
# File 'lib/logging/layouts/basic.rb', line 6 def self.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.
13 14 15 |
# File 'lib/logging/layouts/parseable.rb', line 13 def self.json( *args ) ::Logging::Layouts::Parseable.json(*args) end |
.parseable ⇒ Object
Accessor for the Parseable layout.
7 8 9 |
# File 'lib/logging/layouts/parseable.rb', line 7 def self.parseable ::Logging::Layouts::Parseable end |