lib/backchat_client/backchat_logger.rb
#
# Creates a new Logger object and defines the level and format
#
Creates a new Logger object and defines the level and format
Creates a new Logger object and defines the level and format
def create_logger(output = nil)
        output.nil? and output = STDOUT
        logger = Logger.new(output)
        logger.level = Logger::ERROR
        logger.datetime_format = "%Y-%m-%d %H:%M:%S"
        logger
      end
def create_logger ( output = nil ) output . nil? and output = STDOUT logger = Logger . new ( output ) logger . level = Logger :: ERROR logger . datetime_format = "%Y-%m-%d %H:%M:%S" logger end
Creates a new Logger object and defines the level and format
Creates a new Logger object and defines the level and format
#logger.formatter = proc { |severity, datetime, progname, msg| #  "#{severity} on #{datetime} at #{progname}: #{msg}\n" #}
output
<not_specific>