NAME

Business::Shipping::Logging - Log4perl wrapper for easy, non-OO usage.

NOTES

The Log4perl category is Package::subroutine::line. This gives a lot of information for debugging. (Technically, category is whatever the fourth return value of caller(1) is.)

METHODS

init

Build wrapper on top of Log4perl, increasing caller_depth to one:

Business::Shipping::UPS_Offline::RateRequest::debug()
 |
 |
Business::Shipping::Logging::debug()
 |
 |
Log::Log4perl->logger->DEBUG()

Exported functions

Please see Log4perl for more about these wrapped functions.

logdie

logwarn

fatal

error

warn

info

debug

trace

is_fatal

is_error

is_warn

is_info

is_debug

is_trace

log_level()

Does the heavy lifting for Business::Shipping->log_level().

AUTHOR

Daniel Browning, db@kavod.com, http://www.kavod.com/

COPYRIGHT AND LICENCE

Copyright 2003-2011 Daniel Browning <db@kavod.com>. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.