Class: Backup::Logger::Config::DSL

Inherits:
Struct
  • Object
show all
Defined in:
lib/backup/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consoleObject

Returns the value of attribute console

Returns:

  • (Object)

    the current value of console



15
16
17
# File 'lib/backup/logger.rb', line 15

def console
  @console
end

#ignoresObject

Returns the value of attribute ignores

Returns:

  • (Object)

    the current value of ignores



15
16
17
# File 'lib/backup/logger.rb', line 15

def ignores
  @ignores
end

#logfileObject

Returns the value of attribute logfile

Returns:

  • (Object)

    the current value of logfile



15
16
17
# File 'lib/backup/logger.rb', line 15

def logfile
  @logfile
end

#syslogObject

Returns the value of attribute syslog

Returns:

  • (Object)

    the current value of syslog



15
16
17
# File 'lib/backup/logger.rb', line 15

def syslog
  @syslog
end

Instance Method Details

#ignore_warning(str_or_regexp) ⇒ Object



16
17
18
# File 'lib/backup/logger.rb', line 16

def ignore_warning(str_or_regexp)
  ignores << str_or_regexp
end