Source code for lookatme.log
"""
Logging module
"""
import logging
[docs]def create_log(log_path):
"""Create a new log that writes to log_path
"""
logging.basicConfig(filename=log_path, level=logging.DEBUG)
return logging.getLogger("lookatme")
[docs]def create_null_log():
"""Create a logging object that does nothing
"""
logging.basicConfig(handlers=[logging.NullHandler()])
return logging.getLogger("lookatme")