extdlog: Expose some logging API functions.

This commit is contained in:
Stuart Longland 2018-08-04 12:19:37 +10:00
parent 659fb43a88
commit 59658eb5e6
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -6,6 +6,10 @@ Add TRACE and AUDIT levels to the standard Python logging module if not present.
import logging
# Import some useful functions from logging
basicConfig = logging.basicConfig
getLogger = logging.getLogger
# Import logging levels from logging so we can access them all in one place.
CRITICAL = logging.CRITICAL
ERROR = logging.ERROR