Module: Extlib

Module | Extlib
In: | lib/extlib/assertions.rb lib/extlib/byte_array.rb lib/extlib/hook.rb lib/extlib/inflection.rb lib/extlib/logger.rb lib/extlib/pooling.rb lib/extlib/simple_set.rb lib/extlib/version.rb lib/extlib.rb

#### Public Extlib Logger API

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

#### Private Extlib Logger API

To initialize the logger you create a new object, proxies to set_log.

      Extlib::Logger.new(log{String, IO},level{Symbol, String})

### Methods

exiting exiting=

### Classes and Modules

Module Extlib::Assertions
Module Extlib::Hook
Module Extlib::Inflection
Module Extlib::Pooling
Class Extlib::ByteArray
Class Extlib::Logger
Class Extlib::SimpleSet

### Constants

VERSION | = | '0.9.13'

### Attributes

logger | [RW] |

### Public Class methods

exiting()
exiting=(bool)

[Validate]