nvflare.app_common.app_defined.component_base module

class ComponentBase[source]

Bases: FLComponent

Init FLComponent.

The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)

FLComponents have the capability to handle and fire events and contain various methods for logging.

critical(msg: str)[source]

Convenience method for logging a CRITICAL message with contextual info

Parameters:

msg – the message to be logged

Returns:

debug(msg: str)[source]

Convenience method for logging an DEBUG message with contextual info

Parameters:

msg – the message to be logged

Returns:

error(msg: str)[source]

Convenience method for logging an ERROR message with contextual info

Parameters:

msg – the message to be logged

Returns:

exception(msg: str)[source]

Convenience method for logging an EXCEPTION message with contextual info

Parameters:

msg – the message to be logged

Returns:

info(msg: str)[source]

Convenience method for logging an INFO message with contextual info

Parameters:

msg – the message to be logged

Returns:

warning(msg: str)[source]

Convenience method for logging a WARNING message with contextual info

Parameters:

msg – the message to be logged

Returns: