Scroll to navigation

Sympa::Log(3Sympa) sympa 6.2.70 Sympa::Log(3Sympa)

NAME

Sympa::Log - Logging facility of Sympa

SYNOPSIS

  use Sympa::Log;
  my $log = Sympa::Log->instance;
  $log->openlog($facility, 'inet');
  $log->{level} = 0;
  $log->syslog('info', '%s: Stat logging', $$);

DESCRIPTION

TBD.

Methods

Constructor. Creates new singleton instance of Sympa::Log.
TBD.
TBD.
TBD,
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.

Properties

Instance of Sympa::Log has following properties.

{level}
Logging level. Integer or "undef".
{log_to_stderr}
If set, print logs by syslog() to standard error. Property value may be log level(s) to print or 'all'.

SEE ALSO

Sys::Syslog, Sympa::DatabaseManager.

HISTORY

Database logging feature contributed by Adrien Brard appeared on Sympa 5.3.

Statistics feature appeared on Sympa 6.2.

Log module was renamed to Sympa::Log on Sympa 6.2.

2023-01-26 6.2.70