mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
14 lines
366 B
Python
14 lines
366 B
Python
LOGGING_FORMAT = "[%(levelname)s] %(message)s"
|
|
|
|
|
|
def set(level: int) -> None:
|
|
import logging
|
|
import sys
|
|
|
|
logging.basicConfig(format=LOGGING_FORMAT, stream=sys.stdout)
|
|
logging.getLogger().setLevel(level)
|
|
|
|
if level == logging.DEBUG:
|
|
logging.debug("Verbose DEBUG logging enabled")
|
|
else:
|
|
logging.info("Logging level set to INFO")
|