App::LogChannel - Interface for logging
use App; $context = App->context(); $logchannel = $context->service("LogChannel"); # or ... $logchannel = $context->logchannel();
A LogChannel service is a means by which messages are logged through a logging system. This perhaps ends up in a file, or perhaps it ends up on someone's operator console screen somewhere.
The following classes might be a part of the LogChannel Class Group.
Class: App::LogChannel
Class: App::LogChannel::LogDispatch
Class: App::LogChannel::NetDaemon
A LogChannel service ...
* Throws: App::Exception::LogChannel * Since: 0.01
...
The constructor is inherited from App::Service.
App::Service
* Signature: $logchannel->log(@text); * Param: @text array[string] * Return: void * Throws: App::Exception::LogChannel * Since: 0.01 Sample Usage: $context = App->context(); $logchannel = $context->service("LogChannel"); # or ... $logchannel->log("Error occurred");
Returns 'LogChannel';
* Signature: $service_type = App::LogChannel->service_type(); * Param: void * Return: $service_type string * Since: 0.01 $service_type = $authz->service_type();
* Author: Stephen Adkins <stephen.adkins@officevision.com> * License: This is free software. It is licensed under the same terms as Perl itself.
App::Context, App::Service
App::Context
To install App::Context, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Context
CPAN shell
perl -MCPAN -e shell install App::Context
For more information on module installation, please visit the detailed CPAN module installation guide.