Module: Logsly::Logging182::Layouts
- Defined in:
- lib/logsly/logging182/layouts.rb,
lib/logsly/logging182/layouts/basic.rb,
lib/logsly/logging182/layouts/pattern.rb,
lib/logsly/logging182/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/logsly/logging182/layouts/basic.rb', line 6 def self.basic( *args ) return ::Logsly::Logging182::Layouts::Basic if args.empty? ::Logsly::Logging182::Layouts::Basic.new(*args) end |
.json(*args) ⇒ Object
Factory for the Parseable layout using JSON formatting.
12 13 14 |
# File 'lib/logsly/logging182/layouts/parseable.rb', line 12 def self.json( *args ) ::Logsly::Logging182::Layouts::Parseable.json(*args) end |
.parseable ⇒ Object
Accessor for the Parseable layout.
6 7 8 |
# File 'lib/logsly/logging182/layouts/parseable.rb', line 6 def self.parseable ::Logsly::Logging182::Layouts::Parseable end |
.pattern(*args) ⇒ Object
Accessor / Factory for the Pattern layout.
6 7 8 9 |
# File 'lib/logsly/logging182/layouts/pattern.rb', line 6 def self.pattern( *args ) return ::Logsly::Logging182::Layouts::Pattern if args.empty? ::Logsly::Logging182::Layouts::Pattern.new(*args) end |
.yaml(*args) ⇒ Object
Factory for the Parseable layout using YAML formatting.
18 19 20 |
# File 'lib/logsly/logging182/layouts/parseable.rb', line 18 def self.yaml( *args ) ::Logsly::Logging182::Layouts::Parseable.yaml(*args) end |