1Config::PropertyConfiguUrsaetrorC(o3n)tributed Perl DocuCmoennftiagt:i:oPnropertyConfigurator(3)
2
3
4

NAME

6       Log::Log4perl::Config::PropertyConfigurator - reads properties file
7

SYNOPSIS

9           # This class is used internally by Log::Log4perl
10
11           use Log::Log4perl::Config::PropertyConfigurator;
12
13           my $conf = Log::Log4perl::Config::PropertyConfigurator->new();
14           $conf->file("l4p.conf");
15           $conf->parse(); # will die() on error
16
17           my $value = $conf->value("log4perl.appender.LOGFILE.filename");
18
19           if(defined $value) {
20               printf("The appender's file name is $value\n");
21           } else {
22               printf("The appender's file name is not defined.\n");
23           }
24

DESCRIPTION

26       Initializes log4perl from a properties file, stuff like
27
28           log4j.category.a.b.c.d = WARN, A1
29           log4j.category.a.b = INFO, A1
30
31       It also understands variable substitution, the following configuration
32       is equivalent to the previous one:
33
34           settings = WARN, A1
35           log4j.category.a.b.c.d = ${settings}
36           log4j.category.a.b = INFO, A1
37

SEE ALSO

39       Log::Log4perl::Config
40
41       Log::Log4perl::Config::BaseConfigurator
42
43       Log::Log4perl::Config::DOMConfigurator
44
45       Log::Log4perl::Config::LDAPConfigurator (tbd!)
46

AUTHOR

48       Kevin Goess, <cpan@goess.org> Jan-2003 Mike Schilli, <cpan@perlmeisā€
49       ter.com>, 2007
50
51
52
53perl v5.8.8                       2002-07-10   Config::PropertyConfigurator(3)
Impressum