diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2018-01-18 02:25:31 -0500 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2018-02-12 15:44:18 -0500 |
commit | 4c4412642e40a92bebd26f2966bc72619e16ae79 (patch) | |
tree | a9c0c08aa8dd2de651cdaad684155ec4962dd3eb /aai-resources/src/main/config/logback-migration.xml | |
parent | 9c04bb4a324af0857dacc65880c3540dc18d5b89 (diff) |
Sync up the latest logging code changes
Issue-ID: AAI-493
Change-Id: I778acf7726b1f9881dee62b128b1fbc457bf7a7e
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-resources/src/main/config/logback-migration.xml')
-rw-r--r-- | aai-resources/src/main/config/logback-migration.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/aai-resources/src/main/config/logback-migration.xml b/aai-resources/src/main/config/logback-migration.xml new file mode 100644 index 0000000..88ade33 --- /dev/null +++ b/aai-resources/src/main/config/logback-migration.xml @@ -0,0 +1,56 @@ +<!-- + ============LICENSE_START======================================================= + org.onap.aai + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ============LICENSE_END========================================================= + --> + +<configuration> + <appender name="MIGRATION_FILE_LOG" + class="ch.qos.logback.core.FileAppender"> + <append>true</append> + <file>logs/migrationAic3.log</file> + <encoder class="org.onap.aai.logging.CustomLogPatternLayoutEncoder"> + <Pattern>%a %u %z [%t] "%m %U" %s %b</Pattern> + </encoder> + </appender> + <root level="DEBUG"> + <appender-ref ref="MIGRATION_FILE_LOG" /> + </root> +</configuration> + +<!-- +%a - Remote IP address +%A - Local IP address +%b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent +%B - Bytes sent, excluding HTTP headers +%h - Remote host name +%H - Request protocol +%l - Remote logical username from identd (always returns '-') +%m - Request method +%p - Local port +%q - Query string (prepended with a '?' if it exists, otherwise an empty string +%r - First line of the request +%s - HTTP status code of the response +%S - User session ID +%t - Date and time, in Common Log Format format +%u - Remote user that was authenticated +%U - Requested URL path +%v - Local server name +%I - current request thread name (can compare later with stacktraces) + +%z - Custom pattern that parses the cert for the subject + --> |