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_logger ⇒ Object
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
24
25
26
27
28
|
# File 'lib/dvla/herodotus.rb', line 24
def config
c = Config.new
yield(c) if block_given?
c
end
|
.configuration ⇒ Object
15
16
17
|
# File 'lib/dvla/herodotus.rb', line 15
def configuration
@configuration ||= Config.new
end
|
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