Log::Agent::Tag::Priority(3pm)

Log::Agent::Tag::Priority3pm

A log priority tag string

Usage

 Not intended to be used directly
 Inherits from Log::Agent::Tag.

Overview

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 message.

"-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 message.

"-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.

Releases

12 releases since Debian 3.0 (Woody); the text changed 7 times.

  1. 3.0
  2. 3.1
  3. 4.0–5.0
  4. 6.0–7
  5. 8
  6. 9–10
  7. 11
  8. 12–13

Author

Raphael Manfredi <[email protected]>

From liblog-agent-perl 1.005-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.