irtk.utils.Logger

class irtk.utils.Logger(filename: str = 'exp.log')

Logger to redirect stdout to both the console and a file.

Typical usage: sys.stdout = Logger(‘a.log’).

__init__(filename: str = 'exp.log')

Initialize the logger.

Parameters:

filename – The file name of the log file.