Log::Localized

surf the logflow...



Erwan Lemonnier, November 2005

About logging mechanisms

Problematic 1/2

Problematic 2/2

The answer: Log::Localized

Perl code geography

Verbosity rules

Example of rule file

Log::Localized

Synopsis

# create file ‘verbosity.conf’ in local dir
package Foo;
use Log::Localized;

sub bar {
  	 # this message will be logged
    # if method bar's verbosity is >= 1
	 llog(1,"running bar()");
}

# this message will be logged
# if package Foo's verbosity is >= 3

llog(3,"loaded package Foo");

Use cases

Customization 1/2

Customization 2/2

Alternatives to rule files

Incoming features

Questions?