Sha256: 3dc73b4acf9795ea4a283a450138f739cf4e8a2bd19e1200cc797d11f042889a
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require 'logger' require 'mixlib/cli' require 'foreground/version' require 'foreground/daemon' require 'foreground/cli' module Foreground class << self # The global configuration based on command line options. attr_accessor :config end def logger @logger ||= create_logger end private def create_logger STDOUT.sync = true l = Logger.new(STDOUT) #TODO: Test this! l.formatter = proc do |severity, datetime, progname, msg| "#{progname} [#{severity}]: #{msg}\n" end l end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreground-0.1.0 | lib/foreground.rb |