gitlabhq/lib/gitlab/logger.rb

9 lines
179 B
Ruby

module Gitlab
class Logger
def self.error(message)
@@logger ||= ::Logger.new(File.join(Rails.root, "log/githost.log"))
@@logger.error(message)
end
end
end