blob: b801a7ae5f8da18a182dc4375c2045a84b6100cd [file] [log] [blame]
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +01001{{/*<!--
Sylvain Desbureaux70070412020-11-09 21:58:48 +01002 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 Modifications Copyright © 2018 Amdocs, Bell Canada
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +01007 Modifications Copyright © 2020 Orange
Sylvain Desbureaux70070412020-11-09 21:58:48 +01008 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010013 http://www.apache.org/licenses/LICENSE-2.0
Sylvain Desbureaux70070412020-11-09 21:58:48 +010014
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
Sylvain Desbureaux70070412020-11-09 21:58:48 +010021-->
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010022*/}}<configuration>
23 <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
24 <appender name="ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
25 <file>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log</file>
26 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
27 <fileNamePattern>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd}
28</fileNamePattern>
29 </rollingPolicy>
30 <encoder class="org.onap.aai.logging.CustomLogPatternLayoutEncoder">
31 <Pattern>%a %u %z [%t] "%m %U%q" %s %b %y %i{X-TransactionId} %i{X-FromAppId} %i{X-Forwarded-For} %i{X-AAI-SSL-Client-CN} %i{X-AAI-SSL-Client-OU} %i{X-AAI-SSL-Client-O} %i{X-AAI-SSL-Client-L} %i{X-AAI-SSL-Client-ST} %i{X-AAI-SSL-Client-C} %i{X-AAI-SSL-Client-NotBefore} %i{X-AAI-SSL-Client-NotAfter} %i{X-AAI-SSL-Client-DN} %D</Pattern>
32 </encoder>
33 </appender>
34 <appender-ref ref="ACCESS" />
35</configuration>{{/*<!--
Sylvain Desbureaux70070412020-11-09 21:58:48 +010036%a - Remote IP address
37%A - Local IP address
38%b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent
39%B - Bytes sent, excluding HTTP headers
40%h - Remote host name
41%H - Request protocol
42%l - Remote logical username from identd (always returns '-')
43%m - Request method
44%p - Local port
45%q - Query string (prepended with a '?' if it exists, otherwise an empty string
46%r - First line of the request
47%s - HTTP status code of the response
48%S - User session ID
49%t - Date and time, in Common Log Format format
50%u - Remote user that was authenticated
51%U - Requested URL path
52%v - Local server name
53%I - current request thread name (can compare later with stacktraces)
54
55%z - Custom pattern that parses the cert for the subject
56%y - Custom pattern determines rest or dme2
Sylvain Desbureauxa41dfc02021-02-15 10:14:22 +010057-->*/}}