1Log::Dispatch::ConfigurUasteorr:C:oAnptprCiobnuftiegdL(o3Pg)e:r:lDiDsopcautmcehn:t:aCtoinofnigurator::AppConfig(3)
2
3
4

NAME

6       Log::Dispatch::Configurator::AppConfig - Configurator implementation
7       with AppConfig
8

SYNOPSIS

10         use Log::Dispatch::Config;
11         use Log::Dispatch::Configurator::AppConfig;
12
13         my $config = Log::Dispatch::Configurator::AppConfig->new('log.cfg');
14         Log::Dispatch::Config->configure($config);
15
16         # nearby piece of code
17         my $log = Log::Dispatch::Config->instance;
18

DESCRIPTION

20       Log::Dispatch::Configurator::AppConfig is an implementation of
21       Log::Dispatch::Configurator using AppConfig format. Here is a sample of
22       config file.
23
24         dispatchers = file screen
25
26         file.class = Log::Dispatch::File
27         file.min_level = debug
28         file.filename = /path/to/log
29         file.mode = append
30         file.format = [%d] [%p] %m at %F line %L%n
31
32         screen.class = Log::Dispatch::Screen
33         screen.min_level = info
34         screen.stderr = 1
35         screen.format = %m
36
37       You can use ini style grouping.
38
39         [file]
40         class = Log::Dispatch::File
41         min_level = debug
42
43         [screen]
44         class = Log::Dispatch::Screen
45         min_level = info
46
47       If you use _ (underscore) in dispatcher name, something very bad may
48       happen. It is safe when you avoid doing so.
49

AUTHOR

51       Tatsuhiko Miyagawa <miyagawa@bulknews.net>
52
53       This library is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55

SEE ALSO

57       Log::Dispatch::Config, AppConfig
58
59
60
61perl v5.38.0                      2023L-o0g7:-:2D0ispatch::Configurator::AppConfig(3)
Impressum