View | Details | Raw Unified | Return to bug 16357
Collapse All | Expand All

(-)a/debian/templates/log4perl-site.conf.in (-7 / +24 lines)
Lines 38-47 log4perl.appender.SIP.layout=PatternLayout Link Here
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
39
log4perl.appender.SIP.utf8=1
39
log4perl.appender.SIP.utf8=1
40
40
41
log4perl.logger.plack = WARN, PLACK
41
42
log4perl.appender.PLACK=Log::Log4perl::Appender::Screen
42
log4perl.logger.plack-opac = WARN, PLACKOPAC
43
log4perl.appender.PLACK.stderr = 1
43
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
44
log4perl.appender.PLACK.mode=append
44
log4perl.appender.PLACKOPAC.filename=__LOG_DIR__/plack-opac-error.log
45
log4perl.appender.PLACK.layout=PatternLayout
45
log4perl.appender.PLACKOPAC.mode=append
46
log4perl.appender.PLACK.layout.ConversionPattern=[%d] [%p] %m
46
log4perl.appender.PLACKOPAC.layout=PatternLayout
47
log4perl.appender.PLACK.utf8=1
47
log4perl.appender.PLACKOPAC.layout.ConversionPattern=[%d] [%p] %m
48
log4perl.appender.PLACKOPAC.utf8=1
49
50
log4perl.logger.plack-api = WARN, PLACKAPI
51
log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File
52
log4perl.appender.PLACKAPI.filename=__LOG_DIR__/plack-api-error.log
53
log4perl.appender.PLACKAPI.mode=append
54
log4perl.appender.PLACKAPI.layout=PatternLayout
55
log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m
56
log4perl.appender.PLACKAPI.utf8=1
57
58
log4perl.logger.plack-intranet = WARN, PLACKINTRANET
59
log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File
60
log4perl.appender.PLACKINTRANET.filename=__LOG_DIR__/plack-intranet-error.log
61
log4perl.appender.PLACKINTRANET.mode=append
62
log4perl.appender.PLACKINTRANET.layout=PatternLayout
63
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m
64
log4perl.appender.PLACKINTRANET.utf8=1
(-)a/debian/templates/plack.psgi (-6 / +15 lines)
Lines 71-85 Koha::Logger->get; Link Here
71
builder {
71
builder {
72
    enable "ReverseProxy";
72
    enable "ReverseProxy";
73
    enable "Plack::Middleware::Static";
73
    enable "Plack::Middleware::Static";
74
    enable "Log4perl", category => "plack";
75
    enable "LogWarn";
76
74
77
    # + is required so Plack doesn't try to prefix Plack::Middleware::
75
    # + is required so Plack doesn't try to prefix Plack::Middleware::
78
    enable "+Koha::Middleware::SetEnv";
76
    enable "+Koha::Middleware::SetEnv";
79
    enable "+Koha::Middleware::RealIP";
77
    enable "+Koha::Middleware::RealIP";
80
78
81
    mount '/opac'          => $opac;
79
    mount '/opac'          => builder {
82
    mount '/intranet'      => $intranet;
80
        enable 'Log4perl', category => 'plack-opac';
83
    mount '/api/v1/app.pl' => $apiv1;
81
        enable 'LogWarn';
84
82
        $opac;
83
    };
84
    mount '/intranet'      => builder {
85
        enable 'Log4perl', category => 'plack-intranet';
86
        enable 'LogWarn';
87
        $intranet;
88
    };
89
    mount '/api/v1/app.pl' => builder {
90
        enable 'Log4perl', category => 'plack-api';
91
        enable 'LogWarn';
92
        $apiv1;
93
    };
85
};
94
};
(-)a/etc/log4perl.conf (-8 / +24 lines)
Lines 38-47 log4perl.appender.SIP.layout=PatternLayout Link Here
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %m %l %n
39
log4perl.appender.SIP.utf8=1
39
log4perl.appender.SIP.utf8=1
40
40
41
log4perl.logger.plack = WARN, PLACK
41
42
log4perl.appender.PLACK=Log::Log4perl::Appender::Screen
42
log4perl.logger.plack-opac = WARN, PLACKOPAC
43
log4perl.appender.PLACK.stderr = 1
43
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
44
log4perl.appender.PLACK.mode=append
44
log4perl.appender.PLACKOPAC.filename=__LOG_DIR__/plack-opac-error.log
45
log4perl.appender.PLACK.layout=PatternLayout
45
log4perl.appender.PLACKOPAC.mode=append
46
log4perl.appender.PLACK.layout.ConversionPattern=[%d] [%p] %m
46
log4perl.appender.PLACKOPAC.layout=PatternLayout
47
log4perl.appender.PLACK.utf8=1
47
log4perl.appender.PLACKOPAC.layout.ConversionPattern=[%d] [%p] %m
48
log4perl.appender.PLACKOPAC.utf8=1
49
50
log4perl.logger.plack-api = WARN, PLACKAPI
51
log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File
52
log4perl.appender.PLACKAPI.filename=__LOG_DIR__/plack-api-error.log
53
log4perl.appender.PLACKAPI.mode=append
54
log4perl.appender.PLACKAPI.layout=PatternLayout
55
log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m
56
log4perl.appender.PLACKAPI.utf8=1
57
58
log4perl.logger.plack-intranet = WARN, PLACKINTRANET
59
log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File
60
log4perl.appender.PLACKINTRANET.filename=__LOG_DIR__/plack-intranet-error.log
61
log4perl.appender.PLACKINTRANET.mode=append
62
log4perl.appender.PLACKINTRANET.layout=PatternLayout
63
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m
64
log4perl.appender.PLACKINTRANET.utf8=1
48
- 

Return to bug 16357