module Logging::Layouts

Public Class Methods

basic( *args ) click to toggle source

Accessor / Factory for the Basic layout.

# 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 ) click to toggle source

Factory for the Parseable layout using JSON formatting.

# File lib/logging/layouts/parseable.rb, line 13
def self.json( *args )
  ::Logging::Layouts::Parseable.json(*args)
end
parseable() click to toggle source

Accessor for the Parseable layout.

# File lib/logging/layouts/parseable.rb, line 7
def self.parseable
  ::Logging::Layouts::Parseable
end
pattern( *args ) click to toggle source

Accessor / Factory for the Pattern layout.

Returns a new Pattern layout instance

# 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 ) click to toggle source

Factory for the Parseable layout using YAML formatting.

# File lib/logging/layouts/parseable.rb, line 19
def self.yaml( *args )
  ::Logging::Layouts::Parseable.yaml(*args)
end