Python YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
yasmin Namespace Reference

Functions

List[Union[str, int]] get_caller_info ()
 
None py_default_log_message (LogLevel level, str file, str function, int line, str text)
 
None set_py_loggers ()
 
None YASMIN_LOG_ERROR (str text)
 
None YASMIN_LOG_WARN (str text)
 
None YASMIN_LOG_INFO (str text)
 
None YASMIN_LOG_DEBUG (str text)
 

Variables

list __all__
 

Function Documentation

◆ get_caller_info()

List[Union[str, int]] yasmin.get_caller_info ( )
Retrieve information about the caller of the current function.

This function inspects the call stack to obtain the file name, function
name, and line number of the caller.

@return: A tuple containing the file name, function name, and line number.
@rtype: tuple[str, str, int]

◆ py_default_log_message()

None yasmin.py_default_log_message ( LogLevel level,
str file,
str function,
int line,
str text )
Default python logging function.

@param level The log level as a string (e.g., "ERROR", "WARN", "INFO",
"DEBUG").
@param file The source file where the log function is called.
@param function The function where the log function is called.
@param line The line number in the source file.
@param text The format string for the log message.

◆ set_py_loggers()

None yasmin.set_py_loggers ( )
Set the Python logging function for YASMIN.

@param log_function: The logging function to set.
@type log_function: callable

◆ YASMIN_LOG_DEBUG()

None yasmin.YASMIN_LOG_DEBUG ( str text)
Log a debug message with the caller's information.

This function formats the log message to include the file name, function
name, and line number where the log function was called.

@param text: The debug message to log.
@type text: str

@return: None

◆ YASMIN_LOG_ERROR()

None yasmin.YASMIN_LOG_ERROR ( str text)
Log an error message with the caller's information.

This function formats the log message to include the file name, function
name, and line number where the log function was called.

@param text: The error message to log.
@type text: str

@return: None

◆ YASMIN_LOG_INFO()

None yasmin.YASMIN_LOG_INFO ( str text)
Log an informational message with the caller's information.

This function formats the log message to include the file name, function
name, and line number where the log function was called.

@param text: The informational message to log.
@type text: str

@return: None

◆ YASMIN_LOG_WARN()

None yasmin.YASMIN_LOG_WARN ( str text)
Log a warning message with the caller's information.

This function formats the log message to include the file name, function
name, and line number where the log function was called.

@param text: The warning message to log.
@type text: str

@return: None

Variable Documentation

◆ __all__

list yasmin.__all__
private
Initial value:
1= [
2 State,
3 Concurrence,
4 CbState,
5 Blackboard,
6 StateMachine,
7 get_log_level,
8 set_log_level,
9 log_level_to_name,
10 set_loggers,
11 set_default_loggers,
12 set_py_loggers,
13 YASMIN_LOG_ERROR,
14 YASMIN_LOG_WARN,
15 YASMIN_LOG_INFO,
16 YASMIN_LOG_DEBUG,
17]