class Carioca::Services::InternalLogger

Service Logger (InternalLogger) of Carioca, @note integrally based on Logger from logger Gem

Public Class Methods

new(_options = {}) click to toggle source

logger service constructor (open log) @param [Hash] _options the params @option _options [String] :target the filename where to log

Calls superclass method
# File lib/carioca/services/logger.rb, line 32
def initialize(_options = {})
  options = Methodic.get_options(_options)
  options.specify_default_value :target => STDOUT
  options.merge
  super(options[:target])
end

Private Instance Methods

garbage() click to toggle source

garbage service hook @note close the logger

# File lib/carioca/services/logger.rb, line 41
def garbage
  self.close
end