Module: DVLA::Herodotus

Defined in:
lib/dvla/herodotus.rb,
lib/dvla/herodotus/config.rb,
lib/dvla/herodotus/version.rb,
lib/dvla/herodotus/proc_writer.rb,
lib/dvla/herodotus/multi_writer.rb,
lib/dvla/herodotus/herodotus_logger.rb,
lib/dvla/herodotus/semantic_colours.rb

Defined Under Namespace

Modules: SemanticColours Classes: Config, HerodotusLogger, MultiWriter, ProcWriter

Constant Summary collapse

VERSION =
'2.4.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.main_loggerObject

Returns the value of attribute main_logger.



13
14
15
# File 'lib/dvla/herodotus.rb', line 13

def main_logger
  @main_logger
end

Class Method Details

.config {|c| ... } ⇒ Object

Yields:

  • (c)


24
25
26
27
28
# File 'lib/dvla/herodotus.rb', line 24

def config
  c = Config.new
  yield(c) if block_given?
  c
end

.configurationObject



15
16
17
# File 'lib/dvla/herodotus.rb', line 15

def configuration
  @configuration ||= Config.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
22
# File 'lib/dvla/herodotus.rb', line 19

def configure
  yield(configuration) if block_given?
  configuration
end

.logger(system_name, config: self.configuration, output_path: nil) ⇒ Object



36
37
38
# File 'lib/dvla/herodotus.rb', line 36

def self.logger(system_name, config: self.configuration, output_path: nil)
  create_logger(system_name, config, output_path)
end

.reset_configuration!Object



30
31
32
33
# File 'lib/dvla/herodotus.rb', line 30

def reset_configuration!
  @configuration = Config.new
  SemanticColours.reset!
end