launch.actions.log module

Module for the Log action.

class launch.actions.log.Log[source]

Bases: LogInterface

Action that logs a message when executed.

classmethod parse(entity: Entity, parser: Parser) Tuple[Type[Log], Dict[str, Any]][source]

Parse log tag.

class launch.actions.log.LogDebug[source]

Bases: SharedLogSpecificParse, LogInterface

Action that logs a message with level DEBUG when executed.

__init__(*, msg: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs)[source]

Create a LogDebug action.

class launch.actions.log.LogError[source]

Bases: SharedLogSpecificParse, LogInterface

Action that logs a message with level ERROR when executed.

__init__(*, msg: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs)[source]

Create a LogError action.

class launch.actions.log.LogInfo[source]

Bases: SharedLogSpecificParse, LogInterface

Action that logs a message with level INFO when executed.

__init__(*, msg: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs)[source]

Create a LogInfo action.

class launch.actions.log.LogInterface[source]

Bases: Action

__init__(*, msg: str | Path | Substitution | Iterable[str | Path | Substitution], level: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs)[source]

Create a Log action.

execute(context: LaunchContext) None[source]

Execute the action.

property level: List[Substitution]

Getter for self.__level.

property msg: List[Substitution]

Getter for self.__msg.

class launch.actions.log.LogWarning[source]

Bases: SharedLogSpecificParse, LogInterface

Action that logs a message with level WARNING when executed.

__init__(*, msg: str | Path | Substitution | Iterable[str | Path | Substitution], **kwargs)[source]

Create a LogWarning action.

class launch.actions.log.SharedLogSpecificParse[source]

Bases: Action

classmethod parse(entity: Entity, parser: Parser) Tuple[Type[SharedLogSpecificParse], Dict[str, Any]][source]

Parse log_* tag.