Class: Notarius::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/notarius/config.rb

Overview

Holds the configuration for a logging module.

Instance Attribute Summary collapse

Instance Attribute Details

#consoleBoolean

Turn console logging on or off. Default is off.

Returns:

  • (Boolean)

    whether console logging is enabled



9
10
11
# File 'lib/notarius/config.rb', line 9

def console
  @console
end

#fileString?

Turn file logging on or off. Default is off.

Returns:

  • (String, nil)

    the path to the file or nil if off



14
15
16
# File 'lib/notarius/config.rb', line 14

def file
  @file
end