Application logger
This commit is contained in:
parent
4903910390
commit
0523b4265b
10 changed files with 86 additions and 20 deletions
11
lib/gitlab/git_logger.rb
Normal file
11
lib/gitlab/git_logger.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
module Gitlab
|
||||
class GitLogger < Gitlab::Logger
|
||||
def self.file_name
|
||||
'githost.log'
|
||||
end
|
||||
|
||||
def format_message(severity, timestamp, progname, msg)
|
||||
"#{timestamp.to_s(:long)} -> #{severity} -> #{msg}\n"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue