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).
Mojo struct
TraceLevel
struct TraceLevel
An enum-like struct specifying the level of tracing to perform.
Fieldsβ
- βvalue (
Int): The integer value representing the trace level. Lower values indicate higher priority trace levels:- 0 (ALWAYS): Always traced
- 1 (OP): Operation-level tracing
- 2 (THREAD): Thread-level tracing
Implemented traitsβ
AnyType,
Comparable,
Copyable,
Equatable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
ALWAYSβ
comptime ALWAYS = TraceLevel(Int(0))
Always trace at this level.
OPβ
comptime OP = TraceLevel(Int(1))
Operation-level tracing.
THREADβ
comptime THREAD = TraceLevel(Int(2))
Thread-level tracing.
Methodsβ
__init__β
def __init__(value: Int) -> Self
Initializes a TraceLevel with the given integer value.
Args:
- βvalue (
Int): The integer value for the trace level.
__lt__β
def __lt__(self, rhs: Self) -> Bool
Performs less than comparison.
Args:
- βrhs (
Self): The value to compare.
Returns:
Bool: True if this value is less than to rhs.
__eq__β
def __eq__(self, rhs: Self) -> Bool
Compares for equality.
Args:
- βrhs (
Self): The value to compare.
Returns:
Bool: True if they are equal.
__int__β
def __int__(self) -> Int
Converts the trace level to an integer.
Returns:
Int: The integer value of the trace level.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!