Logging
agentlogging
is originally placed here. It is now packaged and released as part of twa
python wrapper.
One can import and use it as below:
from twa import agentlogging
dev_logger = agentlogging.get_logger("dev")
dev_logger.debug("This is a DEBUG statement")
dev_logger.info("This is an INFO statement")
prod_logger = agentlogging.get_logger("prod")
prod_logger.debug("This is a DEBUG statement")
prod_logger.info("This is an INFO statement")
For more details, see the Logging page on TWA Wiki.