Class: ManqodLogger

Inherits:
Logger::Application
  • Object
show all
Includes:
Singleton
Defined in:
lib/ManqodLogger.rb

Overview

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])

Constant Summary collapse

LEVEL_MAP =
{
  "DEBUG" => Logger::Severity::DEBUG,
  "INFO" => Logger::Severity::INFO,
  "WARN" => Logger::Severity::WARN,
  "ERROR"  => Logger::Severity::ERROR,
  "FATAL"  => Logger::Severity::FATAL,
  "UNKNOWN"  => Logger::Severity::UNKNOWN
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#report_addressObject (readonly)

Returns the value of attribute report_address.



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

def report_address
  @report_address
end

Instance Method Details

#set_level(llevel) ⇒ Object



20
21
22
# File 'lib/ManqodLogger.rb', line 20

def set_level(llevel)
  self.level=LEVEL_MAP[llevel]
end

#set_report_address(ra) ⇒ Object



23
24
25
# File 'lib/ManqodLogger.rb', line 23

def set_report_address(ra)
  @report_address=ra
end