Monday, June 23, 2008

A Little Easier EasyLogging

In need of easier access to thresholding, I added some more methods:

  • one to pull the current threshold level,
  • five to interrogate the current threshold with respect to a given level, and
  • five to set the current threshold level

    as they relate to the default logger. These are available as mixed-in methods on the EasyLog Module and class methods of EasyLogger class.

    Additionally, I added special support for writing empty log messages to aid in grouping related log entries.

    I extended the earlier paper with a description of their use, and have added them to in the eymiha_util-1.0.2 rubygem in my Chunks of Ruby Infrastructure project on RubyForge.
  • No comments: