toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 1 | <!--
|
| 2 |
|
| 3 | ============LICENSE_START=======================================================
|
| 4 | org.onap.aai
|
| 5 | ================================================================================
|
| 6 | Copyright © 2017 AT&T Intellectual Property. All rights reserved.
|
| 7 | Modifications Copyright © 2018 Amdocs, Bell Canada
|
| 8 | ================================================================================
|
| 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 |
|
| 13 | http://www.apache.org/licenses/LICENSE-2.0
|
| 14 |
|
| 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=========================================================
|
| 21 |
|
| 22 | ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 23 |
|
| 24 | -->
|
| 25 | <configuration>
|
| 26 | <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
|
| 27 | <appender name="ACCESS"
|
| 28 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 29 | <file>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log</file>
|
| 30 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
| 31 | <fileNamePattern>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd}
|
| 32 | </fileNamePattern>
|
| 33 | </rollingPolicy>
|
| 34 | <encoder class="org.onap.aai.logging.CustomLogPatternLayoutEncoder">
|
| 35 | <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>
|
| 36 | </encoder>
|
| 37 | </appender>
|
| 38 | <appender-ref ref="ACCESS" />
|
| 39 | </configuration>
|
| 40 |
|
| 41 | <!--
|
| 42 | %a - Remote IP address
|
| 43 | %A - Local IP address
|
| 44 | %b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent
|
| 45 | %B - Bytes sent, excluding HTTP headers
|
| 46 | %h - Remote host name
|
| 47 | %H - Request protocol
|
| 48 | %l - Remote logical username from identd (always returns '-')
|
| 49 | %m - Request method
|
| 50 | %p - Local port
|
| 51 | %q - Query string (prepended with a '?' if it exists, otherwise an empty string
|
| 52 | %r - First line of the request
|
| 53 | %s - HTTP status code of the response
|
| 54 | %S - User session ID
|
| 55 | %t - Date and time, in Common Log Format format
|
| 56 | %u - Remote user that was authenticated
|
| 57 | %U - Requested URL path
|
| 58 | %v - Local server name
|
| 59 | %I - current request thread name (can compare later with stacktraces)
|
| 60 |
|
| 61 | %z - Custom pattern that parses the cert for the subject
|
| 62 | %y - Custom pattern determines rest or dme2
|
| 63 | -->
|