Class: Logger Abstract

Inherits:
Object
  • Object
show all
Defined in:
logger.rb

Overview

This class is abstract.
  • subclass and implement #log.

An entity which logs the actions of a StateMachine.

Direct Known Subclasses

ParserLogger

Instance Method Summary collapse

Instance Method Details

#log(data = {}) ⇒ nil

Logs the data into some output device

Returns:

  • (nil)

Raises:

  • (StandardError)

    if #log is not implemented


8
9
10
# File 'logger.rb', line 8

def log(data = {})
  raise StandardError.new('Logger#log is not implemented')
end