logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sympa::Log - Logging facility of Sympa

Description

       TBD.

   Methods
       instance ( )
           Constructor.  Creates new singleton instance of Sympa::Log.

       openlog ( [ options ... ] )
           TBD.

       syslog ( $level, $format, [ parameters ... ] )
           TBD.

       get_log_date
           TBD,

       db_log
           TBD.

       add_stat
           TBD.

       get_first_db_log
           TBD.

       get_next_db_log
           TBD.

       aggregate_stat
           TBD.

       aggregate_daily_data
           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'.

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.

6.2.76                                             2025-02-12                                 Sympa::Log(3Sympa)

Name

       Sympa::Log - Logging facility of Sympa

See Also

       Sys::Syslog, Sympa::DatabaseManager.

Synopsis

         use Sympa::Log;

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

See Also