Application logger
This commit is contained in:
parent
4903910390
commit
0523b4265b
10 changed files with 86 additions and 20 deletions
11
lib/gitlab/app_logger.rb
Normal file
11
lib/gitlab/app_logger.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue