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

LICENSE

48       Copyright 2002-2013 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

AUTHOR

55       Please contribute patches to the project on Github:
56
57           http://github.com/mschilli/log4perl
58
59       Send bug reports or requests for enhancements to the authors via our
60
61       MAILING LIST (questions, bug reports, suggestions/patches):
62       log4perl-devel@lists.sourceforge.net
63
64       Authors (please contact them via the list above, not directly): Mike
65       Schilli <m@perlmeister.com>, Kevin Goess <cpan@goess.org>
66
67       Contributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens
68       Berthold, Jeremy Bopp, Hutton Davidson, Chris R. Donnelly, Matisse
69       Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon, Carl Franks, Dennis
70       Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier  David
71       Hull, Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter,
72       Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope, Lars
73       Thegler, David Viner, Mac Yang.
74
75
76
77perl v5.36.0                      2022-10-24   Config::PropertyConfigurator(3)
Impressum