From 1ae7a92fbd2331b05959d07ad4408ef3c43abae0 Mon Sep 17 00:00:00 2001 From: "minhac.lee" Date: Tue, 18 Oct 2022 17:52:38 +0900 Subject: [PATCH] Adding log configuration file of kfadapter Issue-Id: AIMLFW-2 Signed-off-by: minhac.lee Change-Id: I9f8d7deaa45115af292b031988b97a64abc09796 --- config/log_config.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 config/log_config.yaml diff --git a/config/log_config.yaml b/config/log_config.yaml new file mode 100644 index 0000000..f8de271 --- /dev/null +++ b/config/log_config.yaml @@ -0,0 +1,38 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. 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. +# +# ================================================================================== +version: 1 +formatters: + simple: + format: '%(asctime)s | %(filename)s %(lineno)s %(funcName)s() | %(levelname)s | %(message)s' +handlers: + console: + class: logging.StreamHandler + level: DEBUG + formatter: simple + stream: ext://sys.stdout + access_file: + class: logging.handlers.RotatingFileHandler + level: DEBUG + formatter: simple + filename: kfconnector.log + maxBytes: 10485760 + backupCount: 20 + encoding: utf8 +root: + level: DEBUG + handlers: [access_file,console] -- 2.16.6