Class: LoggerBase

Inherits:
Object
  • Object
show all
Defined in:
lib/debugtrace/loggers.rb

Overview

Abstract base class for logger classes.

Author:

  • Masato Kokubo

Direct Known Subclasses

FileLogger, StdLogger

Instance Method Summary collapse

Instance Method Details

Outputs the message.

Parameters:

  • message (String)

    The message to output



12
13
14
# File 'lib/debugtrace/loggers.rb', line 12

def print(message)
  raise 'LoggerBase.print is an abstract method.'
end

#to_sString

Returns a string representation of this object.

Returns:

  • (String)

    A string representation of this object



18
19
20
# File 'lib/debugtrace/loggers.rb', line 18

def to_s
  "#{self.class.name}"
end