The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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:

logfile (xtmd.log)
loglevel (1)

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 variable loglevel). 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

XTM

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