Class: Crosstest::Core::StdoutLogger

Inherits:
LogdevLogger show all
Defined in:
lib/crosstest/core/logging.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



85
86
87
# File 'lib/crosstest/core/logging.rb', line 85

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



106
107
108
# File 'lib/crosstest/core/logging.rb', line 106

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



113
114
115
# File 'lib/crosstest/core/logging.rb', line 113

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



92
93
94
# File 'lib/crosstest/core/logging.rb', line 92

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



120
121
122
# File 'lib/crosstest/core/logging.rb', line 120

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



99
100
101
# File 'lib/crosstest/core/logging.rb', line 99

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