NAME
App::LogChannel - Interface for logging
SYNOPSIS
use App;
$context = App->context();
$logchannel = $context->service("LogChannel"); # or ...
$logchannel = $context->logchannel();
DESCRIPTION
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.
Class Group: LogChannel
The following classes might be a part of the LogChannel Class Group.
Class: App::LogChannel
Class: App::LogChannel::LogDispatch
Class: App::LogChannel::NetDaemon
Class: App::LogChannel
A LogChannel service ...
* Throws: App::Exception::LogChannel
* Since: 0.01
Class Design
...
Constructor Methods:
new()
The constructor is inherited from App::Service
.
Public Methods:
log()
* 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");
Protected Methods:
service_type()
Returns 'LogChannel';
* Signature: $service_type = App::LogChannel->service_type();
* Param: void
* Return: $service_type string
* Since: 0.01
$service_type = $authz->service_type();
ACKNOWLEDGEMENTS
* Author: Stephen Adkins <stephen.adkins@officevision.com>
* License: This is free software. It is licensed under the same terms as Perl itself.