MCPcopy
hub / github.com/Vchitect/Latte / create_logger

Function create_logger

train_pl.py:139–147  ·  view source on GitHub ↗
(logging_dir)

Source from the content-addressed store, hash-verified

137
138
139def create_logger(logging_dir):
140 logging.basicConfig(
141 level=logging.INFO,
142 format="[%(asctime)s] %(message)s",
143 datefmt="%Y-%m-%d %H:%M:%S",
144 handlers=[logging.StreamHandler(), logging.FileHandler(f"{logging_dir}/log.txt")]
145 )
146 logger = logging.getLogger(__name__)
147 return logger
148
149
150def create_experiment_directory(args):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected