Application logger

This commit is contained in:
randx 2012-09-11 23:24:53 +03:00
parent 4903910390
commit 0523b4265b
10 changed files with 86 additions and 20 deletions

11
lib/gitlab/app_logger.rb Normal file
View file

@ -0,0 +1,11 @@
module Gitlab
class AppLogger < Gitlab::Logger
def self.file_name
'application.log'
end
def format_message(severity, timestamp, progname, msg)
"#{timestamp.to_s(:long)}: #{msg}\n"
end
end
end