Class: Gitlab::AppLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/gitlab/app_logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Logger

build, error, file_name, info, read_latest, read_latest_for

Class Method Details

.file_name_noextObject


3
4
5
# File 'lib/gitlab/app_logger.rb', line 3

def self.file_name_noext
  'application'
end

Instance Method Details

#format_message(severity, timestamp, progname, msg) ⇒ Object


7
8
9
# File 'lib/gitlab/app_logger.rb', line 7

def format_message(severity, timestamp, progname, msg)
  "#{timestamp.to_s(:long)}: #{msg}\n"
end