Class: Gitlab::AppLogger
- Inherits:
-
MultiDestinationLogger
- Object
- Logger
- MultiDestinationLogger
- Gitlab::AppLogger
- Defined in:
- lib/gitlab/app_logger.rb
Constant Summary collapse
- LOGGERS =
[Gitlab::AppTextLogger, Gitlab::AppJsonLogger].freeze
Class Method Summary collapse
Methods inherited from MultiDestinationLogger
#close, debug, error, file_name, file_name_noext, full_log_path, info, read_latest, warn
Class Method Details
.loggers ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/gitlab/app_logger.rb', line 7 def self.loggers if Gitlab::Utils.to_boolean(ENV.fetch('UNSTRUCTURED_RAILS_LOG', 'true')) LOGGERS else [Gitlab::AppJsonLogger] end end |
.primary_logger ⇒ Object
15 16 17 |
# File 'lib/gitlab/app_logger.rb', line 15 def self.primary_logger Gitlab::AppTextLogger end |