GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Log::Dump::Class(3) User Contributed Perl Documentation Log::Dump::Class(3)

Log::Dump::Class

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);

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).

Kenichi Ishigaki, <ishigaki@cpan.org>

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.

2014-08-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.