Import with #import "std/context".

ContextLogger :: #type (tag: string, message: string)
Context :: struct { logger: ContextLogger; tag: string; allocator: Temp; }
ContextLog :: (context: *Context, message: string)

A missing context or logger is intentionally silent, so libraries can make logging optional without installing a platform-specific default.

ContextEnd :: (context: *Context)

Source ↗ · All modules