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



18
19
20
# File 'lib/backup/logger.rb', line 18

def console
  @console
end

#ignoresObject

Returns the value of attribute ignores

Returns:

  • (Object)

    the current value of ignores



18
19
20
# File 'lib/backup/logger.rb', line 18

def ignores
  @ignores
end

#logfileObject

Returns the value of attribute logfile

Returns:

  • (Object)

    the current value of logfile



18
19
20
# File 'lib/backup/logger.rb', line 18

def logfile
  @logfile
end

#syslogObject

Returns the value of attribute syslog

Returns:

  • (Object)

    the current value of syslog



18
19
20
# File 'lib/backup/logger.rb', line 18

def syslog
  @syslog
end

Instance Method Details

#ignore_warning(str_or_regexp) ⇒ Object



19
20
21
# File 'lib/backup/logger.rb', line 19

def ignore_warning(str_or_regexp)
  ignores << str_or_regexp
end