aboutsummaryrefslogtreecommitdiffstats
path: root/test/log.py
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-05-31 08:52:45 +0200
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-06-03 10:01:30 +0200
commit024a13ac0d2e25dec620003e2538acb4598598fd (patch)
treeee37343786a8824913e59a0cbd00d09e1fa74aa3 /test/log.py
parente77922662052f0caec4129ee43ab9d176b806769 (diff)
[TEST] - Init log
- init log - clean output Change-Id: Ia4f722eb5c989df8d2f5f14f602ed30657db9975 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'test/log.py')
-rw-r--r--test/log.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/log.py b/test/log.py
new file mode 100644
index 0000000..35da229
--- /dev/null
+++ b/test/log.py
@@ -0,0 +1,23 @@
+#
+# Copyright (c) 2019 Cisco and/or its affiliates.
+#
+# 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.
+#
+
+import logging
+
+
+def get_logger(name):
+ logger = logging.getLogger(name)
+ logger.setLevel(logging.DEBUG)
+ return logger