Class: Kitchen::Logger::StdoutLogger

Inherits:
LogdevLogger show all
Defined in:
lib/kitchen/logger.rb

Overview

Internal class which reformats logging methods for display as console output.

Instance Method Summary collapse

Methods inherited from LogdevLogger

#<<, #banner

Instance Method Details

#debug(msg = nil, &block) ⇒ Object

Log a debug message

Parameters:

  • msg (String) (defaults to: nil)

    a message



382
383
384
# File 'lib/kitchen/logger.rb', line 382

def debug(msg = nil, &block)
  super("D      #{msg}", &block)
end

#error(msg = nil, &block) ⇒ Object

Log an error message

Parameters:

  • msg (String) (defaults to: nil)

    a message



403
404
405
# File 'lib/kitchen/logger.rb', line 403

def error(msg = nil, &block)
  super(">>>>>> #{msg}", &block)
end

#fatal(msg = nil, &block) ⇒ Object

Log a fatal message

Parameters:

  • msg (String) (defaults to: nil)

    a message



410
411
412
# File 'lib/kitchen/logger.rb', line 410

def fatal(msg = nil, &block)
  super("!!!!!! #{msg}", &block)
end

#info(msg = nil, &block) ⇒ Object

Log an info message

Parameters:

  • msg (String) (defaults to: nil)

    a message



389
390
391
# File 'lib/kitchen/logger.rb', line 389

def info(msg = nil, &block)
  super("       #{msg}", &block)
end

#unknown(msg = nil, &block) ⇒ Object

Log an unknown message

Parameters:

  • msg (String) (defaults to: nil)

    a message



417
418
419
# File 'lib/kitchen/logger.rb', line 417

def unknown(msg = nil, &block)
  super("?????? #{msg}", &block)
end

#warn(msg = nil, &block) ⇒ Object

Log a warn message

Parameters:

  • msg (String) (defaults to: nil)

    a message



396
397
398
# File 'lib/kitchen/logger.rb', line 396

def warn(msg = nil, &block)
  super("$$$$$$ #{msg}", &block)
end