NAME
    FML::Log - logging functions.

SYNOPSIS
    To import log function Log(),

       use FML::Log qw(Log LogWarn LogError);
       Log( $log_message );

    or specify arguments in the hash reference

       use FML::Log qw(Log LogWarn LogError);
       Log( $log_message , {
           log_file => $log_file,
           priority => $priority,
           facility => $facility,
           level    => $level,
       });

DESCRIPTION
    FML::Log contains several interfaces to write log messages, for example,
    log files and syslog.

  Log($message [, $args])
    The required argument is the message to log. You can specify "log_file",
    "facility" and "level" as an optional.

        $args = {
           log_file => $log_file,
           priority => $priority,
           facility => $facility,
           level    => $level,
       };

    This routine depends on "FML::Config" and "FML::Credential". $config->{
    log_format_type } defines the format sytle. "sender" to log is taken
    from "FML::Credential" object.

    Key "log_format_type" changes the log format. By default, our log format
    is same as fml 4.0 format.

  LogWarn( $message [, $args])
    same as Log("warn: $message", $args);

  LogError( $message [, $args])
    same as Log("error: $message", $args);

SEE ALSO
    Mail::Message::Date, FML::Config, FML::Credential,

CODING STYLE
    See "http://www.fml.org/software/FNF/" on fml coding style guide.

AUTHOR
    Ken'ichi Fukamachi <fukachan@fml.org>

COPYRIGHT
    Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008 Ken'ichi
    Fukamachi

    All rights reserved. This program is free software; you can redistribute
    it and/or modify it under the same terms as Perl itself.

HISTORY
    FML::Log first appeared in fml8 mailing list driver package. See
    "http://www.fml.org/" for more details.

