summaryrefslogtreecommitdiff
path: root/lib/gitlab/app_text_logger.rb
blob: 5b0439f43ad63ed87d818861da3b3b546090f9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Gitlab
  class AppTextLogger < Gitlab::Logger
    def self.file_name_noext
      'application'
    end

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