class KXI::Application::Logger::Message::Severity

Represents severity of message

Constants

COMMAND

Severity of messages that log execution of external commands

DEBUG

Severity of messages used for debugging

ERROR

Severity of messages that notify about problems that application can recover from

FATAL

Severity of messages that notify about problems that application cannot recover from

INFO

Severity of messages that user should know about

TRACE

Severity of messages that allow tracing of execution paths

WARNING

Severity of messages that notify about something that might lead in future to problems

Public Class Methods

new(nm, lvl) click to toggle source

Instantiates the [KXI::Application::Logger::Message::Severity] class @param nm [String] Name of severity @param lvl [Number] Level of severity

# File lib/kxi/application/logger.rb, line 96
def initialize(nm, lvl)
        @name = nm
        @lvl  = lvl
end

Public Instance Methods

level() click to toggle source

Gets the level of severity @return [Number] Level of severity

# File lib/kxi/application/logger.rb, line 89
def level
        @lvl
end
name() click to toggle source

Gets the name of severity @return [String] Name of severity

# File lib/kxi/application/logger.rb, line 83
def name
        @name
end