Module: DVLA::Herodotus
- Defined in:
- lib/dvla/herodotus.rb,
lib/dvla/herodotus/version.rb,
lib/dvla/herodotus/proc_writer.rb,
lib/dvla/herodotus/multi_writer.rb,
lib/dvla/herodotus/herodotus_logger.rb
Defined Under Namespace
Classes: HerodotusLogger, MultiWriter, ProcWriter
Constant Summary collapse
- CONFIG_ATTRIBUTES =
%i[display_pid main].freeze
- VERSION =
'2.0.0'.freeze
Class Attribute Summary collapse
-
.main_logger ⇒ Object
Returns the value of attribute main_logger.
Class Method Summary collapse
- .config {|config| ... } ⇒ Object
- .logger(system_name, config: self.config, output_path: nil) ⇒ Object
Class Attribute Details
.main_logger ⇒ Object
Returns the value of attribute main_logger.
10 11 12 |
# File 'lib/dvla/herodotus.rb', line 10 def main_logger @main_logger end |
Class Method Details
.config {|config| ... } ⇒ Object
15 16 17 18 19 |
# File 'lib/dvla/herodotus.rb', line 15 def self.config config ||= Struct.new(*CONFIG_ATTRIBUTES, keyword_init: true).new yield(config) if block_given? config end |
.logger(system_name, config: self.config, output_path: nil) ⇒ Object
21 22 23 |
# File 'lib/dvla/herodotus.rb', line 21 def self.logger(system_name, config: self.config, output_path: nil) create_logger(system_name, config, output_path) end |