gaps.log.make_handler#
- make_handler(factory, level='INFO', fmt='gaps (%(levelname)s) - [%(filename)s:%(lineno)d] : %(message)s')[source]#
Make a handler to add to a Logger instance.
- Parameters:
factory (callable) – A callable function to create the default handler.
level (str, optional) – A string representing the logging level for the handler. By default “INFO”.
fmt (str, optional) – A string representing the formatting for logging calls. By default FORMAT.
- Returns:
handler (logging.Handler) – Handler with the specified log level and format.