Sha256: 38eaf9f428f1eef03e19cecf2d7936d91209c0201c22689f5031caf29dd3ccbc
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
require 'logger' module OpenSource module Utilities module Logging class Simple < Logger::Formatter def call(severity, time, progname, msg) "#{msg}\n" end end def logger @logger ||= initialize_logger end private def initialize_logger logger = Logger.new(STDOUT) logger.level = Logger::INFO logger.formatter = Simple.new logger end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opensource-1.1.2 | lib/open_source/utilities/logging.rb |