File size: 441 Bytes
bdb70cc
 
 
 
 
 
3f74254
bdb70cc
 
 
 
3f74254
bdb70cc
 
 
3f74254
bdb70cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sys
import logging

# Define the logging format
logging_str = "[%(asctime)s: %(levelname)s: %(module)s: %(message)s]"

# Configure logging to print ONLY to the console (stdout)
logging.basicConfig(
    level= logging.INFO,
    format= logging_str,
    handlers=[
        logging.StreamHandler(sys.stdout)
    ]
)

# Create the logger object that the rest of the application can import
logger = logging.getLogger("cnnClassifierLogger")