class Roma::Logging::RLogger
Constants
- VERSION
Public Class Methods
create_singleton_instance(logdev, shift_age = 0, shift_size = 1048576)
click to toggle source
# File lib/roma/logging/rlogger.rb 134 def self.create_singleton_instance(logdev, shift_age = 0, shift_size = 1048576) 135 @@singleton_instance = RLogger.new(logdev, shift_age, shift_size) 136 private_class_method :new, :allocate 137 end
instance()
click to toggle source
# File lib/roma/logging/rlogger.rb 139 def self.instance 140 @@singleton_instance 141 end
new(logdev, shift_age = 0, shift_size = 1048576)
click to toggle source
# File lib/roma/logging/rlogger.rb 143 def initialize(logdev, shift_age = 0, shift_size = 1048576) 144 @wrap_logger = Logger.new(logdev, shift_age, shift_size) 145 @wrap_logger.extend(ExtTrace) 146 @wrap_logger.extend(ExtLogDev) 147 @wrap_logger.extendLogDev() 148 end
Public Instance Methods
close()
click to toggle source
# File lib/roma/logging/rlogger.rb 194 def close; @wrap_logger.close; end
debug(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 170 def debug(progname = nil, &block) 171 @wrap_logger.debug(progname, &block) 172 end
debug?()
click to toggle source
# File lib/roma/logging/rlogger.rb 156 def debug?; @wrap_logger.debug?; end
error(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 182 def error(progname = nil, &block) 183 @wrap_logger.error(progname, &block) 184 end
error?()
click to toggle source
# File lib/roma/logging/rlogger.rb 162 def error?; @wrap_logger.error?; end
fatal(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 186 def fatal(progname = nil, &block) 187 @wrap_logger.fatal(progname, &block) 188 end
fatal?()
click to toggle source
# File lib/roma/logging/rlogger.rb 164 def fatal?; @wrap_logger.fatal?; end
info(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 174 def info(progname = nil, &block) 175 @wrap_logger.info(progname, &block) 176 end
info?()
click to toggle source
# File lib/roma/logging/rlogger.rb 158 def info?; @wrap_logger.info?; end
level=(severity)
click to toggle source
# File lib/roma/logging/rlogger.rb 150 def level=(severity) 151 @wrap_logger.level = severity 152 end
set_log_shift_age(age)
click to toggle source
# File lib/roma/logging/rlogger.rb 200 def set_log_shift_age(age) 201 @wrap_logger.set_shift_age(age) 202 end
set_log_shift_size(size)
click to toggle source
# File lib/roma/logging/rlogger.rb 196 def set_log_shift_size(size) 197 @wrap_logger.set_shift_size(size) 198 end
trace(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 166 def trace(progname = nil, &block) 167 @wrap_logger.add(TRACE, nil, progname, &block) 168 end
trace?()
click to toggle source
# File lib/roma/logging/rlogger.rb 154 def trace?; @wrap_logger.level <= TRACE; end
unknown(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 190 def unknown(progname = nil, &block) 191 @wrap_logger.unknow(progname, &block) 192 end
warn(progname = nil, &block)
click to toggle source
# File lib/roma/logging/rlogger.rb 178 def warn(progname = nil, &block) 179 @wrap_logger.warn(progname, &block) 180 end
warn?()
click to toggle source
# File lib/roma/logging/rlogger.rb 160 def warn?; @wrap_logger.warn?; end