Sha256: d930f69ec9abc385fa8b93ba79d8efae715a0718de7c9628b1ed66bf43b5d854
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require 'logger' module Servicy # Get a logger instance that we can do something useful with. def self.logger @logger ||= begin stream = config.server.logger_stream stream = stream || File.open(File.join('/var', 'log', 'servicy_server.log'), 'a') level = config.log_level level = level.nil? ? Logger::WARN : level l = Logger.new(stream) l.level = level l end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
servicy-0.0.6 | lib/servicy/servicy_logger.rb |