To replace an existing logger with a new one:
Extlib::Logger.set_log(log{String, IO},level{Symbol, String})
Available logging levels are
Extlib::Logger::{ Fatal, Error, Warn, Info, Debug }
Logging via:
Extlib.logger.fatal(message<String>,&block) Extlib.logger.error(message<String>,&block) Extlib.logger.warn(message<String>,&block) Extlib.logger.info(message<String>,&block) Extlib.logger.debug(message<String>,&block)
Logging with autoflush:
Extlib.logger.fatal!(message<String>,&block) Extlib.logger.error!(message<String>,&block) Extlib.logger.warn!(message<String>,&block) Extlib.logger.info!(message<String>,&block) Extlib.logger.debug!(message<String>,&block)
Flush the buffer to
Extlib.logger.flush
Remove the current log object
Extlib.logger.close
To initialize the logger you create a new object, proxies to set_log.
Extlib::Logger.new(log{String, IO},level{Symbol, String})
This class has exists to represent binary data. This is mainly used by DataObjects. Binary data sometimes needs to be quoted differently than regular string data (even if the string is just plain ASCII).
# File lib/extlib.rb, line 46 def self.exiting return @exiting if defined?(@exiting) @exiting = false end
# File lib/extlib.rb, line 37 def self.exiting= bool if bool && Extlib.const_defined?('Pooling') if Extlib::Pooling.scavenger? Extlib::Pooling.scavenger.wakeup end end @exiting = true end