jdxi_editor.log.logger

log message

Attributes

_json_path

_json_spec

Classes

Logger

Logger class

Functions

format_midi_message_to_hex_string(→ str)

format_midi_message_to_hex_string

Module Contents

jdxi_editor.log.logger._json_path[source]
jdxi_editor.log.logger._json_spec = None[source]
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.

exception[source]
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.

info[source]
debug[source]
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).

static debug_info(successes: list, failures: list, stacklevel: int = 4) None[source]

Logs debug information about the parsed SysEx data.

Parameters:
  • stacklevel – int

  • successes – list – Parameters successfully decoded.

  • failures – list – Parameters that failed decoding.