IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

LogLevel

LogLevel​

class max.engine.LogLevel(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

source

Bases: str, Enum

Verbosity of Mojo logging in the compiled model.

Set with InferenceSession.set_mojo_log_level().

CRITICAL​

CRITICAL = 'critical'

source

A failure so serious the run cannot continue.

DEBUG​

DEBUG = 'debug'

source

Detailed diagnostic information.

ERROR​

ERROR = 'error'

source

A failure in part of the run.

INFO​

INFO = 'info'

source

Confirmation that things are working as expected.

NOTSET​

NOTSET = 'notset'

source

No Mojo logging at all.

TRACE​

TRACE = 'trace'

source

Finest-grained logging; more detail than DEBUG.

WARNING​

WARNING = 'warning'

source

A sign that something unexpected happened; execution continues.