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
48       Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess
49       <cpan@goess.org>.
50
51       This library is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53
54
55
56perl v5.12.2                      2010-08-31   Config::PropertyConfigurator(3)
Impressum