|
Python YASMIN (Yet Another State MachINe)
|
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__ |
| 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]
| 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.
| None yasmin.set_py_loggers | ( | ) |
Set the Python logging function for YASMIN. @param log_function: The logging function to set. @type log_function: callable
| 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
| 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
| 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
| 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
|
private |