Function - add_log_level

Contents

Function - add_log_level#

openfl.utilities.utils.add_log_level(level_name, level_num, method_name=None)[source]#

Add a new logging level to the logging module.

This function adds a new logging level to the logging module with a specified name, value, and method name.

Parameters:
  • level_name (str) – The name of the new logging level.

  • level_num (int) – The value of the new logging level.

  • method_name (str, optional) – The name of the method to use for the new logging level. Defaults to None.