class Object

Public Instance Methods

configure_loggun() { |config| ... } click to toggle source
# File lib/loggun/modifiers/clockwork/manager.rb, line 4
def configure_loggun
  yield(config)
  setup_formatter
  if config[:sleep_timeout] < 1
    config[:logger].warn 'sleep_timeout must be >= 1 second'
  end
end
setup_formatter() click to toggle source
# File lib/loggun/modifiers/clockwork/manager.rb, line 14
def setup_formatter
  return unless Loggun::Config.instance.modifiers.clockwork

  Loggun::Config.setup_formatter(self)
end