18 from datetime
import datetime
20 from ._folder_manager
import folder_manager
21 from .logging
import initializeLogger, LogSeverity
22 from .configuration
import CONFIG_DIR
25 def _initializeDefaultLogger() -> None:
26 logName = datetime.now().strftime(
"%Y-%m-%d_%H-%M-%S.%f%z")
27 logPath = folder_manager.coretexpylibLogs.joinpath(logName).with_suffix(
".log")
29 initializeLogger(LogSeverity.info, logPath, jsonOutput =
False)
32 def _initializeCLILogger() -> None:
33 logName = datetime.now().strftime(
"%Y-%m-%d_%H-%M-%S.%f%z")
34 logPath = CONFIG_DIR /
"logs"
35 logPath.mkdir(exist_ok =
True)
37 initializeLogger(LogSeverity.info, logPath.joinpath(logName).with_suffix(
".log"), jsonOutput =
False)