2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
module Gitlab
|
2020-03-13 15:44:24 +05:30
|
|
|
class AppLogger < Gitlab::MultiDestinationLogger
|
|
|
|
LOGGERS = [Gitlab::AppTextLogger, Gitlab::AppJsonLogger].freeze
|
|
|
|
|
|
|
|
def self.loggers
|
|
|
|
LOGGERS
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
def self.primary_logger
|
|
|
|
Gitlab::AppTextLogger
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|