:py:mod:`pyloggrid.Libs.custom_logger` ====================================== .. py:module:: pyloggrid.Libs.custom_logger .. autoapi-nested-parse:: Create a custom logger. Used to replace all print calls. Outputs to log file. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: pyloggrid.Libs.custom_logger.setup_custom_logger .. py:function:: setup_custom_logger(name: str, level=logging.DEBUG, logfile: str = 'log.log') -> logging.Logger Create custom logger. Auto-formats logs lines, writes to file. :param logfile: path to log file to write to :param name: logger name :param level: log level (debug/info/..) :returns: logger