Skip to main content

source-code_snippets_8_py

In Python the log level is set to WARNING, but YepCode exposes a logger object that has DEBUG level, so you may use it. The print method also generates a INFO log message:

print("This is an INFO message");
logger.debug("This is a DEBUG message");
logger.info("This is an INFO message");
logger.warn("This is a WARNING message");
logger.error("This is an ERROR message");