Class: Polytrix::Logger::StdoutLogger

Inherits:
LogdevLogger show all
Defined in:
lib/polytrix/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



334
335
336
# File 'lib/polytrix/logger.rb', line 334

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



355
356
357
# File 'lib/polytrix/logger.rb', line 355

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



362
363
364
# File 'lib/polytrix/logger.rb', line 362

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



341
342
343
# File 'lib/polytrix/logger.rb', line 341

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



369
370
371
# File 'lib/polytrix/logger.rb', line 369

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



348
349
350
# File 'lib/polytrix/logger.rb', line 348

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