activate_logging¶
-
mastml.utils.
activate_logging
(savepath, paths, logger_name='mastml', to_screen=True, to_file=True, verbosity=0)[source]¶ Method to create MAST-ML logger file
Args:
savepath: (str), string specifying the save path
paths: (list), list containing strings of path locations for config file, data file, and results folder
logger_name: (str), name of logger file
to_screen: (bool), whether or not to write the log contents to the screen during a run
to_file: (bool), whether or not to write the log contents to a file in the savepath
verbosity: (int), controls the amount of output produced in the logger. Accepted values:
0 shows everything
-1 hides debug
-2 hides info (so no stdout except print)
-3 hides warning
-4 hides error
-5 hides all output
Returns:
None