Logging::Layouts

Public Instance Methods

basic( *args ) click to toggle source

Accessor / Factory for the Basic layout.

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

Factory for the Parseable layout using JSON formatting.

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

Accessor for the Parseable layout.

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

Accessor / Factory for the Pattern layout.

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

Factory for the Parseable layout using YAML formatting.

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.