module Logsly

This class provides a DSL for setting color scheme values and lazy eval's the DSL to generate a Logging color scheme object. See github.com/TwP/logging/blob/logging-1.8.2/lib/logging/color_scheme.rb for details on Logging color schemes.

Constants

DEFAULT_LEVEL
VERSION

Public Class Methods

colors(name, &block) click to toggle source
# File lib/logsly.rb, line 27
def self.colors(name, &block)
  settings.colors[name.to_s] = Colors.new(name, &block) if !block.nil?
  settings.colors[name.to_s]
end
file(name, &block) click to toggle source
# File lib/logsly.rb, line 36
def self.file(name, &block)
  settings.outputs[name.to_s] = Outputs::File.new(&block)
end
outputs(name) click to toggle source
# File lib/logsly.rb, line 44
def self.outputs(name)
  settings.outputs[name.to_s]
end
reset() click to toggle source
# File lib/logsly.rb, line 18
def self.reset
  @settings = nil
  Logsly::Logging182.reset
end
settings() click to toggle source
# File lib/logsly.rb, line 23
def self.settings
  @settings ||= Settings.new
end
stdout(name, &block) click to toggle source
# File lib/logsly.rb, line 32
def self.stdout(name, &block)
  settings.outputs[name.to_s] = Outputs::Stdout.new(&block)
end
syslog(name, &block) click to toggle source
# File lib/logsly.rb, line 40
def self.syslog(name, &block)
  settings.outputs[name.to_s] = Outputs::Syslog.new(&block)
end