From 99af24ce61ad0e2fe85cbd1ff1bcd76764bb63c3 Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 16 Aug 2017 15:27:13 +0200 Subject: [PATCH] add logging test --- .gitignore | 1 + logging-test.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 logging-test.py diff --git a/.gitignore b/.gitignore index 7e464c9..6e8fed1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ test_swig_opencv.py test_swig_opencv_wrap.cxx anki-sin-cos-table.txt json_memoize*.json +*.log diff --git a/logging-test.py b/logging-test.py new file mode 100644 index 0000000..ff3ad83 --- /dev/null +++ b/logging-test.py @@ -0,0 +1,4 @@ +import logging + +logging.basicConfig(level=logging.DEBUG, filename='logging-test.log') +logging.info('this should go to the log file')