relevanceai.utils.logger#

Module Contents#

relevanceai.utils.logger.str2bool(v)#
class relevanceai.utils.logger.AbstractLogger#

_Base Logging Instance

info :Callable#
error :Callable#
success :Callable#
debug :Callable#
warning :Callable#
critical :Callable#
warn :Callable#
class relevanceai.utils.logger.LoguruLogger(**kwargs)#

Using verbose loguru as base logger for now

property logger(self)#
class relevanceai.utils.logger.FileLogger(fn: str = 'logs.txt', verbose: bool = False, log_to_file=True)#

Log system output to a file if it gets messy.

log(self, text)#
relevanceai.utils.logger.suppress_stdout_stderr()#

A context manager that redirects stdout and stderr to devnull