From 4c21daf2cb23f5d809bd9071436e71c8261e7db7 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 16 Nov 2017 17:36:42 +0800 Subject: [PATCH] change python to visualdl --- visualdl/__init__.py | 9 +++++++++ visualdl/log.py | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 visualdl/__init__.py create mode 100644 visualdl/log.py diff --git a/visualdl/__init__.py b/visualdl/__init__.py new file mode 100644 index 00000000..f91720ab --- /dev/null +++ b/visualdl/__init__.py @@ -0,0 +1,9 @@ +import log +import tensorboard +import timer +import util + +__all__ = [ + 'log', + 'util' +] diff --git a/visualdl/log.py b/visualdl/log.py new file mode 100644 index 00000000..5199e96e --- /dev/null +++ b/visualdl/log.py @@ -0,0 +1,7 @@ +import logging + +logger = logging + +logger.basicConfig( + format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s') +logger.getLogger().setLevel(logging.INFO) -- GitLab