Skip to content

.log

Liatir.log provides structured logging for plugins. Every log entry is tagged with the current job ID and streamed in real time to the Liatir Jobs UI, where users can inspect, filter, and export logs.

Logs are also appended to the job's stderr buffer, so they appear in jobs.getOutput() alongside process output.

Methods

MethodNodePythonDescription
.info()log.info(message, meta?)log.info(message, meta=None)Informational message
.warn()log.warn(message, meta?)log.warn(message, meta=None)Warning message
.error()log.error(message, meta?)log.error(message, meta=None)Error message
.debug()log.debug(message, meta?)log.debug(message, meta=None)Debug message

Parameters

ParameterNode (camelCase)Python (snake_case)TypeDescription
messagemessagemessagestringHuman-readable log message
metametametaRecord<string, unknown> / dictOptional structured metadata attached to the entry

Examples

Basic logging

Logging inside a long-running job

Log levels

LevelColor in UIUse case
infoBlueNormal operational messages
warnYellowNon-fatal issues the user should be aware of
errorRedFailures that prevented an operation from completing
debugGrayVerbose diagnostic output for development

Notes


IMPORTANT

JSON response fields are always camelCase in both Node and Python.

  • Log entries are emitted as Tauri events (jobs:log:{jobId}) and displayed in real time in the Jobs UI.
  • Each entry includes a timestamp (Unix epoch milliseconds) added by the backend.
  • The meta field accepts any JSON-serializable object — use it to attach structured context (file paths, counts, error codes) that the UI or downstream tools can parse.
  • Logs are persisted in the job's stderr buffer and can be retrieved via jobs.getOutput().