|
NAMENet::XMPP::Debug - XMPP Debug ModuleSYNOPSISNet::XMPP::Debug is a module that provides a developer easy access to logging debug information.DESCRIPTIONDebug is a helper module for the Net::XMPP modules. It provides the Net::XMPP modules with an object to control where, how, and what is logged.Basic Functions$Debug = Net::XMPP::Debug->new(); $Debug->Init( level => 2, file => "stdout", header =>"MyScript"); $Debug->Log0("Connection established"); METHODSBasic Functions
EXAMPLE$Debug = Net::XMPP:Debug->new(level=>2, header=>"Example"); $Debug->Log0("test"); $Debug->Log2("level 2 test"); $hash{a} = "atest"; $hash{b} = "btest"; $Debug->Log1("hashtest", \%hash); You would get the following log: Example: test Example: level 2 test Example: hashtest { a=>"atest" b=>"btest" } If you had set the level to 1 instead of 2 you would get: Example: test Example: hashtest { a=>"atest" b=>"btest" } AUTHOROriginally authored by Ryan Eatmon.Previously maintained by Eric Hacker. Currently maintained by Darian Anthony Patrick. COPYRIGHTThis module is free software, you can redistribute it and/or modify it under the LGPL 2.1.
Visit the GSP FreeBSD Man Page Interface. |