Sha256: 08a09eb6d17f6652ba5ddfe700424ef9db62382cd309ba1e0a4417160f3f3830

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module Griffin
  class Logger
    class << self
      def create(config)
        ServerEngine::DaemonLogger.new(logdev_from_config(config), config)
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
griffin-0.1.3 lib/griffin/logger.rb
griffin-0.1.2 lib/griffin/logger.rb