# Copyright (c) 2004  Joshua Hoblitt
#
# $Id: Log.pm,v 1.1.1.1 2004-12-22 02:16:24 jhoblitt Exp $

package PS::IPP::IData::Client::Log;

use strict;

our $VERSION = '0.01';

use Log::Log4perl;

my $conf = q(
    log4perl.category.PS.IPP.IData.Client = DEBUG, Screen
#log4perl.category.PS.IPP.IData.Client = DEBUG, CLIENTLOGFILE, Screen

    log4perl.appender.Screen        = Log::Log4perl::Appender::Screen
    log4perl.appender.Screen.stderr = 0
    log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
    log4perl.appender.Screen.layout.ConversionPattern = %d | %H | %p | %M - %m%n

    log4perl.appender.CLIENTLOGFILE           = Log::Log4perl::Appender::File
    log4perl.appender.CLIENTLOGFILE.filename  = /tmp/idata_client.log
    log4perl.appender.CLIENTLOGFILE.mode      = append
    log4perl.appender.CLIENTLOGFILE.layout    = Log::Log4perl::Layout::PatternLayout
    log4perl.appender.CLIENTLOGFILE.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} | %H | %p | %M - %m%n
);

Log::Log4perl::init( \$conf );

1;

__END__
