class Loggr
Attributes
logger[R]
Public Class Methods
new()
click to toggle source
# File lib/loggr.rb, line 13 def initialize() @logger = Logger.new(output) end
Private Instance Methods
output()
click to toggle source
# File lib/loggr.rb, line 19 def output() return STDOUT if ENV["GITOLEMY_VERBOSE"] == "true" Cache.ensure_directory(".gitolemy") File.open(File.join(".gitolemy", "out.log"), "w") end