---
name: "XTM::Log"
section: "3pm"
platform: "linux"
package: "libxtm-perl"
version: "0.37-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/XTM::Log"
---

# XTM::Log(3pm)

XTM::Log - Topic Map Logger

```
  use XTM::Log;
```

This package provides some logging facilities for the XTM::\* packages. Basically, it provides STDERR and file based logging.\
 **Global Variables** Following variables can be set to control the behavior of this package: 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: Here you can provide some descriptive text of the module logging. current loglevel

Any additional parameters are copied (for SCALARs) or output via Data::Dumper::Dumper.

Example:

```
   flog ('MyProgram', 4, 'Logging a line', $line, \%context);
```

provides some basic STDERR logging facilities. Otherwise see `"flog"`.

Example:

```
   elog ('MyProgram', 4, 'Logging a line', $line, \%context);
```

XTM Copyright 200\[1-2\], 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
