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

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

.parseableObject

Accessor for the Parseable layout.


7
8
9
# File 'lib/logging/layouts/parseable.rb', line 7

def self.parseable
  ::Logging::Layouts::Parseable
end

.pattern(*args) ⇒ Object

Accessor / Factory for the Pattern layout.

Returns a new Pattern layout instance


6
7
8
9
# File 'lib/logging/layouts/pattern.rb', line 6

def self.pattern( *args )
  return ::Logging::Layouts::Pattern if args.empty?
  ::Logging::Layouts::Pattern.new(*args)
end

.yaml(*args) ⇒ Object

Factory for the Parseable layout using YAML formatting.


19
20
21
# File 'lib/logging/layouts/parseable.rb', line 19

def self.yaml( *args )
  ::Logging::Layouts::Parseable.yaml(*args)
end