Class: Griffin::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/griffin/logger.rb

Class Method Summary collapse

Class Method Details

.create(config) ⇒ Object



6
7
8
# File 'lib/griffin/logger.rb', line 6

def create(config)
  ServerEngine::DaemonLogger.new(logdev_from_config(config), config)
end

.logdev_from_config(config) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/griffin/logger.rb', line 10

def logdev_from_config(config)
  case c = config[:log]
  when nil  # default
    STDERR
  when '-'
    STDOUT
  else
    c
  end
end