diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-11 23:24:53 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-09-11 23:24:53 +0300 |
commit | 0523b4265bb19bfff15c6a435dd52ffd6a5683f8 (patch) | |
tree | cf98d62ab3ecdf0a130e8532e750ee3110756709 /lib/gitlab/git_logger.rb | |
parent | 4903910390dc746f484d6c1206b00fa17007a665 (diff) | |
download | gitlab-ce-0523b4265bb19bfff15c6a435dd52ffd6a5683f8.tar.gz |
Application logger
Diffstat (limited to 'lib/gitlab/git_logger.rb')
-rw-r--r-- | lib/gitlab/git_logger.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/git_logger.rb b/lib/gitlab/git_logger.rb new file mode 100644 index 00000000000..fbfed205a0f --- /dev/null +++ b/lib/gitlab/git_logger.rb @@ -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 |