gaps.log.init_logger#
- init_logger(stream=True, level='INFO', file=None, fmt='gaps (%(levelname)s) - [%(filename)s:%(lineno)d] : %(message)s')[source]#
Initialize and setup logging instance.
- Parameters:
stream (bool, optional) – Option to add a StreamHandler along with FileHandler. By default True.
level (str, optional) – Level of logging to capture. If multiple handlers/log_files are requested in a single call of this function, the specified logging level will be applied to all requested handlers. By default, “INFO”.
file (str | list, optional) – Path to file that should be used for logging. This can also be a list of filepaths to use for multiple log files. By default, None.
fmt (str, optional) – Format for loggings. By default FORMAT.