NAME
XTM::Log - Topic Map Logger
SYNOPSIS
use XTM::Log;
DESCRIPTION
This package provides some logging facilities for the XTM::* packages. Basically, it provides STDERR and file based logging.
INTERFACE
Global Variables
Following variables can be set to control the behavior of this package:
Methods
- flog
-
provides some basic file logging facilities. Please refer to the global variables for configuration. It logs messages to the current
logfile
whenever called and the passed loglevel is at least the minimum (as configured via the global variableloglevel
). Parameters are:entity
-
Here you can provide some descriptive text of the module logging.
loglevel
-
current loglevel
Any additional parameters are copied (for SCALARs) or output via Data::Dumper::Dumper.
Example:
flog ('MyProgram', 4, 'Logging a line', $line, \%context);
- elog
-
provides some basic STDERR logging facilities. Otherwise see
flog
.Example:
elog ('MyProgram', 4, 'Logging a line', $line, \%context);
SEE ALSO
AUTHOR INFORMATION
Copyright 2001, 2002, Robert Barta <rho@telecoma.net>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html