Project

General

Profile

Bug #6738 » lib_logger_rdoc_default_time_format.patch

patch 2 - stomar (Marcus Stollsteimer), 07/16/2012 03:00 AM

View differences:

lib/logger.rb (Arbeitskopie)
# default. The default format and a sample are shown below:
#
# Log format:
# SeverityID, [Date Time uSec #pid] SeverityLabel -- ProgName: message
# SeverityID, [DateTime #pid] SeverityLabel -- ProgName: message
#
# Log sample:
# I, [Wed Mar 03 02:34:24 JST 1999 895701 #19074] INFO -- Main: info.
# I, [1999-03-03T02:34:24.895701 #19074] INFO -- Main: info.
#
# You may change the date and time format via #datetime_format=.
#
# logger.datetime_format = '%Y-%m-%d %H:%M:%S'
# # e.g. "2004-01-03 00:54:26"
# # e.g. '2004-01-03 00:54:26'
#
# Or, you may change the overall format via the #formatter= method.
#
# logger.formatter = proc do |severity, datetime, progname, msg|
# "#{datetime}: #{msg}\n"
# end
# # e.g. 'Thu Sep 22 08:51:08 GMT+9:00 2005: hello world'
# # e.g. '2005-09-22 08:51:08 +0900: hello world'
#
class Logger
VERSION = "1.2.7"
(2-2/3)