Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log::agent::tag::callback(3pm) [debian man page]

Agent::Tag::Callback(3pm)				User Contributed Perl Documentation				 Agent::Tag::Callback(3pm)

NAME
Log::Agent::Tag::Callback - a dynamic tag string SYNOPSIS
require Log::Agent::Tag::Callback; # Inherits from Log::Agent::Tag. my $tag = Log::Agent::Tag::Callback->make( -name => "session id", -callback => Callback->new($obj, 'method', @args), -postfix => 1, -separator => " -- ", ); DESCRIPTION
This class represents a dynamic tag string, whose value is determined by invoking a pre-determined callback, which is described by a "Callback" object. You need to make your application depend on the "Callback" module from CPAN if you make use of this tagging feature, since "Log::Agent" does not depend on it, on purpose (it does not really use it, it only offers an interface to plug it in). At least version 1.02 must be used. CREATION ROUTINE PARAMETERS
The following parameters are defined, in alphabetical order: "-callback" => "Callback" object The callback to invoke to determine the value of the tag. The call is protected via a busy flag, in case there is an unwanted recursion due to a call to one of the logging routines whilst within the callback. If the callback is busy, the tag emitted is: callback "user" busy assuming "user" is the name you supplied via "-name" for this tag. "-name" => name The name of this tag. Used to flag a callback as busy in case there is an unwanted recursion into the callback routine. "-postfix" => flag Whether tag should be placed after or before the log message. By default, it is prepended to the log message, i.e. this parameter is false. "-separator" => string The separation string between the tag and the log message. A single space by default. AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> SEE ALSO
Callback(3), Log::Agent::Tag(3), Log::Agent::Message(3). perl v5.10.0 2002-03-09 Agent::Tag::Callback(3pm)

Check Out this Related Man Page

Agent::Tag::Priority(3pm)				User Contributed Perl Documentation				 Agent::Tag::Priority(3pm)

NAME
Log::Agent::Tag::Priority - a log priority tag string SYNOPSIS
Not intended to be used directly Inherits from Log::Agent::Tag. DESCRIPTION
This class represents a log priority tag string. CREATION ROUTINE PARAMETERS
The following parameters are defined, in alphabetical order: "-display" => string Specifies the priority/level string to display, with minimal variable substitution. For instance: -display => '[$priority/$level]' The defined variables are documented in the DISPLAY VARIABLES section underneath. "-level" => level This parameter is internally added by "Log::Agent" when computing the priority tag, since only it knows the level of the current messsage. "-postfix" => flag Whether tag should be placed after or before the log message. By default, it is prepended to the log message, i.e. this parameter is false. "-priority" => prio This parameter is internally added by "Log::Agent" when computing the priority tag, since only it knows the priority of the current messsage. "-separator" => string The separation string between the tag and the log message. A single space by default. DISPLAY VARIABLES
The "-display" switch understands a few variables that can be substituted in the supplied string. Both $var and "${var}" forms are supported. Unknown variables are left untouched. $priority The full priority name of the logged message, e.g. "warning" or "error". $level The associated priority level of the logged message, a number. For instance, the level associated to "warning" is 4. See Log::Agent::Priorities for the default name -> level mapping. AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> SEE ALSO
Log::Agent::Tag(3), Log::Agent::Message(3), Log::Agent::Priorities(3). perl v5.10.0 2002-03-09 Agent::Tag::Priority(3pm)
Man Page