Class: EvilEvents::Core::ActivityLogger Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evil_events/core/activity_logger.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.log(activity: nil, message: nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns void.

Parameters:

  • activity (String, NilClass) (defaults to: nil)
  • message (String, NilClass) (defaults to: nil)

Returns:

  • void

Since:

  • 0.1.0



13
14
15
16
# File 'lib/evil_events/core/activity_logger.rb', line 13

def log(activity: nil, message: nil)
  progname = "[EvilEvents:#{activity}]"
  logger.add(logger.level, message, progname)
end

.loggerLogger (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Logger)

Since:

  • 0.1.0



23
24
25
# File 'lib/evil_events/core/activity_logger.rb', line 23

def logger
  EvilEvents::Core::Bootstrap[:config].settings.logger
end