gigl.common.logger#

Classes

Logger

GiGL's custom logger class used for local and cloud logging (VertexAI, Dataflow, etc.) Args: logger (Optional[logging.Logger]): A custom logger to use. If not provided, the default logger will be created. name (Optional[str]): The name to be used for the logger. By default uses "root". log_to_file (bool): If True, logs will be written to a file. If False, logs will be written to the console. extra (Optional[Dict[str, Any]]): Extra information to be added to the log message.