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

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

#parseableObject

Accessor for the Parseable layout.



21
22
23
# File 'lib/logging/layouts.rb', line 21

def parseable
  ::Logging::Layouts::Parseable
end

#pattern(*args) ⇒ Object

Accessor / Factory for the Pattern layout.



14
15
16
17
# File 'lib/logging/layouts.rb', line 14

def 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.



33
34
35
# File 'lib/logging/layouts.rb', line 33

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