lib/sawmill/logger.rb in sawmill-0.1.12 vs lib/sawmill/logger.rb in sawmill-0.1.13
- old
+ new
@@ -49,32 +49,32 @@
# Create a new logger.
#
# Supported options include:
#
- # <tt>:level_group</tt>::
+ # [<tt>:level_group</tt>]
# Use a custom Sawmill::LevelGroup. Normally, you should leave this
# set to the default, which is Sawmill::STANDARD_LEVELS.
- # <tt>:level</tt>::
+ # [<tt>:level</tt>]
# Default level to use for log messages when no level is explicitly
# provided. By default, this is set to the level group's default,
# which in the case of the standard levels is :INFO.
- # <tt>:attribute_level</tt>::
+ # [<tt>:attribute_level</tt>]
# Default level to use for attributes when no level is explicitly
# provided. By default, this is set to the level group's highest,
# level, which in the case of the standard levels is :ANY.
- # <tt>:progname</tt>::
+ # [<tt>:progname</tt>]
# Progname to use in log messages. Default is "sawmill".
- # <tt>:record_progname</tt>::
+ # [<tt>:record_progname</tt>]
# Progname to use in special log entries dealing with log records
# (i.e. record delimiters and attribute messages). Default is the
# same as the normal progname setting.
- # <tt>:record_id_generator</tt>::
+ # [<tt>:record_id_generator</tt>]
# A proc that generates and returns a new record ID if one is not
# explicitly passed into begin_record. If you do not provide a
# generator, the default one is used, which generates an ID using the
# variant 4 (random) UUID standard.
- # <tt>:processor</tt>::
+ # [<tt>:processor</tt>]
# A processor for log entries generated by this logger.
# If not specified, log entries are written out to STDOUT.
def initialize(opts_={})
@level_group = opts_[:level_group] || opts_[:levels] || STANDARD_LEVELS