aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hdv/redfish/log_utils.py
diff options
context:
space:
mode:
authoropensource-tnbt <sridhar.rao@spirent.com>2020-10-30 15:48:23 +0530
committeropensource-tnbt <sridhar.rao@spirent.com>2020-10-30 15:50:29 +0530
commit0fd1dc39ee6f6bb7f2c35f84c3a2a39d9e63805f (patch)
treef58b5d9ca603d193476254d3d5b13e853985ad64 /tools/hdv/redfish/log_utils.py
parentdff7c66ee8e7ef0b8b14ad5776a1318b987d3eaa (diff)
CIRV-Cleanup: Remove HDV and SDV contents.
As CIRV-HDV and CIRV-SDV are active now, we do not need contents here. The docs folder has links to HDV and SDV. Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: I86ee90fb5e969e14d000d9a08d971b13a2c2740e
Diffstat (limited to 'tools/hdv/redfish/log_utils.py')
-rw-r--r--tools/hdv/redfish/log_utils.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/hdv/redfish/log_utils.py b/tools/hdv/redfish/log_utils.py
deleted file mode 100644
index 996a1d1..0000000
--- a/tools/hdv/redfish/log_utils.py
+++ /dev/null
@@ -1,33 +0,0 @@
-##############################################################################
-# Copyright (c) 2020 China Mobile Co.,Ltd and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-"""
-define the LOGGER settings
-"""
-import logging
-import sys
-
-BASE_DIR = sys.path[0]
-LOG_FILE = BASE_DIR + "/" + "logs" + "/" + 'hdv.log'
-
-LOGGER = logging.getLogger("redfish")
-LOGGER.setLevel(logging.DEBUG)
-
-FORMATTER = logging.Formatter('%(asctime)s - %(filename)s[line:%(lineno)d] \
- - %(funcName)s - %(levelname)s: %(message)s')
-
-FILE = logging.FileHandler(filename=LOG_FILE, mode='w')
-FILE.setLevel(logging.DEBUG)
-FILE.setFormatter(FORMATTER)
-
-CONSOLE = logging.StreamHandler()
-CONSOLE.setLevel(logging.DEBUG)
-CONSOLE.setFormatter(FORMATTER)
-
-LOGGER.addHandler(CONSOLE)
-LOGGER.addHandler(FILE)