Class: Gitlab::AppTextLogger

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Logger

build, cache_key, debug, error, file_name, full_log_path, info, read_latest, warn

Class Method Details

.file_name_noextObject


5
6
7
# File 'lib/gitlab/app_text_logger.rb', line 5

def self.file_name_noext
  'application'
end

Instance Method Details

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


9
10
11
# File 'lib/gitlab/app_text_logger.rb', line 9

def format_message(severity, timestamp, progname, msg)
  "#{timestamp.utc.iso8601(3)}: #{msg}\n"
end