[MULTICLOUD] Changes for Jakarta release
[oom.git] / kubernetes / multicloud / components / multicloud-starlingx / resources / config / log / log.yml
1 {{/*
2 # Copyright (c) 2019 Intel Corporation.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 */}}
16 version: 1
17 disable_existing_loggers: False
18
19 loggers:
20     starlingx_base:
21       handlers: [console_handler, file_handler]
22       level: "DEBUG"
23       propagate: False
24     starlingx:
25       handlers: [console_handler, file_handler]
26       level: "DEBUG"
27       propagate: False
28     newton_base:
29       handlers: [console_handler, file_handler]
30       level: "DEBUG"
31       propagate: False
32     common:
33       handlers: [console_handler, file_handler]
34       level: "DEBUG"
35       propagate: False
36
37 handlers:
38     console_handler:
39         level: "DEBUG"
40         class: "logging.StreamHandler"
41         formatter: "standard"
42     file_handler:
43         level: "DEBUG"
44         class: "logging.handlers.RotatingFileHandler"
45         filename: "/var/log/onap/multicloud/openstack/starlingx/starlingx.log"
46         formatter: "standard"
47         maxBytes: 52428800
48         backupCount: 10
49
50 formatters:
51     standard:
52         format: "%(asctime)s|||||%(name)s||%(thread)||%(funcName)s||%(levelname)s||%(message)s"