MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / init_logger

Function init_logger

tools/ci/compile_bsp_with_drivers.py:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15CONFIG_BSP_USING_X = ["CONFIG_BSP_USING_UART", "CONFIG_BSP_USING_I2C", "CONFIG_BSP_USING_SPI", "CONFIG_BSP_USING_ADC", "CONFIG_BSP_USING_DAC"]
16
17def init_logger():
18 log_format = "[%(filename)s %(lineno)d %(levelname)s] %(message)s "
19 date_format = '%Y-%m-%d %H:%M:%S %a '
20 logging.basicConfig(level=logging.INFO,
21 format=log_format,
22 datefmt=date_format,
23 )
24
25def diff():
26 result = subprocess.run(['git', 'diff', '--name-only', 'HEAD', 'origin/master', '--diff-filter=ACMR', '--no-renames', '--full-index'], stdout = subprocess.PIPE)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected