IPB
>  Man Pages > Linux > openSUSE 10.2 > Section 3 > Mail::SpamAssassin::Logger man page

Mail::SpamAssassin::Logger man page

Section 3 - openSUSE 10.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


Mail::SpamAssassin::LoUser(Contributed Perl DocumMail::SpamAssassin::Logger(3)



NAME
       Mail::SpamAssassin::Logger - SpamAssassin logging module

SYNOPSIS
         use Mail::SpamAssassin::Logger;

         $SIG{__WARN__} = sub {
           log_message("warn", $_[0]);
         };

         $SIG{__DIE__} = sub {
           log_message("error", $_[0]) if $_[0] !~ /\bin eval\b/;
         };

METHODS
       add_facilities(facilities)
           Enable debug logging for specific facilities.  Each facility is the
           area of code to debug.  Facilities can be specified as a hash ref-
           erence (the key names are used), an array reference, an array, or a
           comma-separated scalar string.

           If "all" is listed, then all debug facilities are enabled.  Higher
           priority informational messages that are suitable for logging in
           normal circumstances are available with an area of "info".  Some
           very verbose messages require the facility to be specifically
           enabled (see "would_log" below).

       log_message($level, $message)
       log_message($level, @message)
           Log a message at a specific level.  Levels are specified as
           strings: "warn", "error", "info", and "dbg".  The first element of
           the message must be prefixed with a facility name followed directly
           by a colon.

       dbg("facility: message")
           This is used for all low priority debugging messages.

       info("facility: message")
           This is used for informational messages indicating a normal, but
           significant, condition.  This should be infrequently called.  These
           messages are typically logged when SpamAssassin is run as a daemon.

       add(method => 'syslog', socket => $socket, facility => $facility)
           "socket" is the type the syslog ("unix" or "inet").  "facility" is
           the syslog facility (typically "mail").

       add(method => 'file', filename => $file)
           "filename" is the name of the log file.

       add(method => 'stderr')
           No options are needed for stderr logging, just don't close stderr
           first.

       remove(method)
           Remove a logging method.  Only the method name needs to be passed
           as a scalar.

       would_log($level, $facility)
           Returns 0 if a message at the given level and with the given facil-
           ity would be logged.  Returns 1 if a message at a given level and
           facility would be logged normally.  Returns 2 if the facility was
           specifically enabled.

           The facility argument is optional.

       close_log()
           Close all logs.



perl v5.8.8                       2006-08-29     Mail::SpamAssassin::Logger(3)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Sat Sep 8 16:38:56 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

svn man page (6161 hits)
(FreeBSD 6.2)

sqlite3 man page (5596 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (5045 hits)
(Solaris 10 11_06)

CPAN man page (4791 hits)
(Suse Linux 10.1)

ssh man page (4439 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (3525 hits)
(Solaris 10 11_06)

signal man page (3394 hits)
(Suse Linux 10.1)

netcat man page (3373 hits)
(Suse Linux 10.1)

pprosetup man page (2886 hits)
(Solaris 10 11_06)

startproc man page (2738 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: PYRENEES ACTIVITY HOLIDAYS :: Backlit Touch Sensitive Pad :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum