jdxi_editor.log.logger
log message
Attributes
Classes
Logger class |
Functions
format_midi_message_to_hex_string |
Module Contents
- jdxi_editor.log.logger.format_midi_message_to_hex_string(message: list) str[source]
format_midi_message_to_hex_string
- Parameters:
message – list of bytes
- Returns:
str
- class jdxi_editor.log.logger.Logger[source]
Logger class
- static error(message: str, exception: Exception | None = None, level: int = logging.ERROR, stacklevel: int = 4, silent: bool = False) None[source]
Log an error message, optionally with an exception.
- static warning(message: str, exception: Exception | None = None, level: int = logging.WARNING, stacklevel: int = 4, silent: bool = False) None[source]
Log an error message, optionally with an exception.
- static json(data: Any, stacklevel: int = 3, silent: bool = False) None[source]
Log a JSON object or JSON string as a single compact line.
- static message(message: str, level: int = logging.INFO, stacklevel: int = 3, silent: bool = False) None[source]
Log a plain message with optional formatting.
- static parameter(message: str, parameter: Any, float_precision: int = 2, max_length: int = 300, level: int = logging.INFO, stacklevel: int = 4, silent: bool = False) None[source]
Log a structured message including the type and value of a parameter.
- static header_message(message: str, level: int = logging.INFO, silent: bool = False, stacklevel: int = 4) None[source]
Logs a visually distinct header message with separator lines and emojis.
- Parameters:
stacklevel
silent – bool whether or not to write to the log
message – The message to log.
level – Logging level (default: logging.INFO).