class Webgen::Logger

This custom logger class needs to be used (either directly or via a sub-class) for the Webgen::Website logging object.

It provides the following, additional functionality over the stdlib Logger class:

  • If a logging message is an Array and verbose is false, only the first item of the array is output. If verbose is true, the the items of the array are joined using a line break and output.

  • You can add verbose info messages using the vinfo method.



Whether verbose log message should be output. Either true or false (default: false).

Public Instance Methods

vinfo(progname = nil, &block)

Log a verbose info message.