1Agent::Tag::String(3) User Contributed Perl DocumentationAgent::Tag::String(3)
2
3
4
6 Log::Agent::Tag::String - a constant tag string
7
9 require Log::Agent::Tag::String;
10 # Inherits from Log::Agent::Tag.
11
12 my $tag = Log::Agent::Tag::String->make(
13 -name => "session id",
14 -value => $session,
15 -postfix => 1,
16 -separator => " -- ",
17 );
18
20 This class represents a constant tag string.
21
23 The following parameters are defined, in alphabetical order:
24
25 "-name" => name
26 The name of this tag. Currently unused.
27
28 "-postfix" => flag
29 Whether tag should be placed after or before the log message. By
30 default, it is prepended to the log message, i.e. this parameter is
31 false.
32
33 "-separator" => string
34 The separation string between the tag and the log message. A
35 single space by default.
36
37 "-value" => string
38 The tag's value.
39
41 Raphael Manfredi <Raphael_Manfredi@pobox.com>
42
44 Log::Agent::Tag(3), Log::Agent::Message(3).
45
46
47
48perl v5.28.0 2017-10-27 Agent::Tag::String(3)