Skip to content
Snippets Groups Projects
Commit 90e8370a authored by Manuel Günther's avatar Manuel Günther
Browse files

Enabled the logging system in the DCT-UBM exmple.

parent 486789fe
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,15 @@ import os, sys ...@@ -4,6 +4,15 @@ import os, sys
import numpy import numpy
from matplotlib import pyplot from matplotlib import pyplot
# setup the logging system
import logging
formatter = logging.Formatter("%(name)s@%(asctime)s -- %(levelname)s: %(message)s")
logger = logging.getLogger("bob")
for handler in logger.handlers:
handler.setFormatter(formatter)
logger.setLevel(logging.INFO)
# This is the base directory where by default the AT&T images are found. You can # This is the base directory where by default the AT&T images are found. You can
# overwrite this directory on the command line # overwrite this directory on the command line
global ATNT_IMAGE_DIRECTORY global ATNT_IMAGE_DIRECTORY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment