Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 327 Bytes

File metadata and controls

18 lines (13 loc) · 327 Bytes

easylog

Easy configuration for python logging. Configure a logger so that ERROR ends up on stderr and everything else on stdout.

Usage:

import logging
import easylog

logger = logging.getLogger()
easylog.configure_logger(logger)

logger.info(...)        # -> stdout
logger.error(...)       # -> stderr