Class: Footprint::Log::ErrorFile

Inherits:
Basic
  • Object
show all
Defined in:
lib/footprint/log/error_file.rb

Overview

Class that extends the Footprint::Log::Basic and adds a write method which logs on error level.

This Class can be used as a File instance to write in log.

Instance Method Summary collapse

Methods inherited from Basic

#initialize

Constructor Details

This class inherits a constructor from Footprint::Log::Basic

Instance Method Details

#write(message) ⇒ Object

Synopsis

write 'My dummy error log message'

Args

message

The log message. A String or Exception.

Return

true if successful, false otherwise.

Description

Logs the message on error level on logger.


32
33
34
# File 'lib/footprint/log/error_file.rb', line 32

def write(message)
  error message
end