From: minhac.lee Date: Tue, 18 Oct 2022 08:52:38 +0000 (+0900) Subject: Adding log configuration file of kfadapter X-Git-Tag: 1.0.0~22 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=1ae7a92fbd2331b05959d07ad4408ef3c43abae0;p=aiml-fw%2Fathp%2Ftps%2Fkubeflow-adapter.git Adding log configuration file of kfadapter Issue-Id: AIMLFW-2 Signed-off-by: minhac.lee Change-Id: I9f8d7deaa45115af292b031988b97a64abc09796 --- 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]