2018-10-22 03:00:50 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2012-09-11 16:24:53 -04:00
|
|
|
module Gitlab
|
2020-01-13 16:07:39 -05:00
|
|
|
class AppLogger < Gitlab::MultiDestinationLogger
|
|
|
|
LOGGERS = [Gitlab::AppTextLogger, Gitlab::AppJsonLogger].freeze
|
|
|
|
|
|
|
|
def self.loggers
|
|
|
|
LOGGERS
|
2012-09-11 16:24:53 -04:00
|
|
|
end
|
|
|
|
|
2020-01-13 16:07:39 -05:00
|
|
|
def self.primary_logger
|
|
|
|
Gitlab::AppTextLogger
|
2012-09-11 16:24:53 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|