NAME
POE::Component::Client::opentick::Output - Diagnostic message output class.
SYNOPSIS
use POE::Component::Client::opentick::Output;
DESCRIPTION
This module contains diagnostic output routines used by the rest of POE::Component::Client::opentick, and thus is of no use to anything else.
It also rudely exports a bunch of junk into your namespace. This is desirable for the POE component, but why would you want that in your own module?
Don't fiddle with it. Ist easy schnappen der Springenwerk, blowen-fusen und poppen corken mit spitzensparken.
FUNCTIONS
- [$obj = ] O_DEBUG( $msg, $more_msg, .... )
-
Print a message at the DEBUG level, or return an object containing the message.
- [$obj = ] O_INFO( $msg, $more_msg, .... )
-
Print a message at the INFO level, or return an object containing the message.
- [$obj = ] O_NOTICE( $msg, $more_msg, .... )
-
Print a message at the NOTICE level, or return an object containing the message.
- [$obj = ] O_WARN( $msg, $more_msg, .... )
-
Print a message at the WARN level, or return an object containing the message.
- [$obj = ] O_ERROR( $msg, $more_msg, .... )
-
Print a message at the ERROR level, or return an object containing the message.
- $obj = new( @args )
-
Create a new object.
- initialize( )
-
Initialize the object instance.
- stringify()
-
The overloaded stringification method for this object. It is magic.
Do not gaze upon it lest your brain explode.
SUBCLASSING
The intent for this module is to be able to be subclassed to redirect error output to the desired location.
It is thought that the only thing necessary would be to redefine the $output hashref to do so. But, to be honest, I haven't tested.
Maybe this will change, in my copious free time. Feel free to try it.
ACCESSORS
If you should choose to use this as an object (as happens when it is used in an exception), here are some accessors to use:
- set_debug -- CLASS -- set the DEBUG flag
- set_prefix -- CLASS -- set the prefix
- set_quiet -- CLASS -- set the QUIET flag
- get_level -- return the level of this object
- get_message -- return the actual message
- get_timestamp -- return the timestamp of this object
NOTES
This module also overloads the stringify() method '""', so using the object in a string will automagically dump its contents in a useful format.
SEE ALSO
POE, POE::Component::Client::opentick
perldoc lib
perldoc -q "include path"
AUTHOR
Jason McManus (INFIDEL) - infidel AT cpan.org
LICENSE
Copyright (c) Jason McManus
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
The data from opentick.com are under an entirely separate license that varies according to exchange rules, etc. It is your responsibility to follow the opentick.com and exchange license agreements with the data.
Further details are available on http://www.opentick.com/.