Class: Kameleoon::Logging::DefaultLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/kameleoon/logging/default_logger.rb

Overview

A default implementation of a logger that prints log messages to the console. This logger implements the Logger interface.

Instance Method Summary collapse

Instance Method Details

#log(level, message) ⇒ Object

Logs a message at the specified log level.

Parameters:

  • level (LogLevel)

    the log level

  • message (String)

    the log message



15
16
17
# File 'lib/kameleoon/logging/default_logger.rb', line 15

def log(level, message)
  puts message
end