NAME
Log::Dump::Class
SYNOPSIS
prepare your logger class:
package YourApp::Log;
use Log::Dump::Class;
and use it in your application classes:
package YourApp::ClassA;
use YourApp::Log;
package YourApp::ClassB;
use YourApp::Log;
now if you enable/disable your logger in some class, all the classes will be affected by that change.
# this enables YourApp::ClassB's logger, too
YourApp::ClassA->logger(1);
DESCRIPTION
You usually want to use this for a larger application, as this allows you to enable/disable a logger application-wide easily (not per a class). See SYNOPSIS for usage, and Log::Dump for available methods.
Note that Log::Dump::Class-based class stores its status in the class, not in an object that actually uses it (even if you call its methods from the object).
AUTHOR
Kenichi Ishigaki, <ishigaki@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.