Class: Confiner::Plugins::Debug

Inherits:
Confiner::Plugin show all
Defined in:
lib/confiner/plugins/debug.rb

Instance Attribute Summary

Attributes inherited from Confiner::Plugin

#examples

Instance Method Summary collapse

Methods inherited from Confiner::Plugin

arguments, #initialize, #run

Methods included from Logger

#log, log_to, log_to=, #run

Constructor Details

This class inherits a constructor from Confiner::Plugin

Instance Method Details

#action1Object



8
9
10
# File 'lib/confiner/plugins/debug.rb', line 8

def action1
  log :debug, arg1
end

#action2Object



12
13
14
# File 'lib/confiner/plugins/debug.rb', line 12

def action2
  log :debug, arg2
end

#errorObject



25
26
27
28
# File 'lib/confiner/plugins/debug.rb', line 25

def error
  log :err, 'Err'
  log :error, 'Error'
end

#fatalObject



21
22
23
# File 'lib/confiner/plugins/debug.rb', line 21

def fatal
  log :fatal, 'Fatal'
end

#warnObject



16
17
18
19
# File 'lib/confiner/plugins/debug.rb', line 16

def warn
  log :warn, 'Warn'
  log :warning, 'Warning'
end