class Sawmill::LevelGroup::Builder

You may call methods of this object in the block passed to Sawmill::LevelGroup#new.

Public Instance Methods

add(name_, opts_={}) click to toggle source

Add a level to this group. The level is assigned the next value in sequence, and the given name.

You may also provide these options:

:default

If set to true, this level is made the default.

:methods

If set to an array of strings or methods, those method names are mapped to this level. You may then use those methods in the Sawmill::Logger class as a shortcut for creating log messages with this level.

# File lib/sawmill/level.rb, line 242
def add(name_, opts_={})
  @group._add(name_, opts_)
end