Basic module

log

procedure · 2 overloadsSource

Formats a message as print would and hands it to context.logger.

log :: (
    format_string: string,
    args: ..Any,
    loc := #caller_location,
    flags := Log_Flags.NONE,
    user_flags: u32 = 0,
    section: *Log_Section = null
)

Parameters

format_string: string
args: ..Any
loc := #caller_location
flags := Log_Flags.NONE
a Log_Flags value, such as .ERROR or .CONTENT. Passed on to the logger.
user_flags: u32
bits for your own logger. Nothing in the standard library reads them.
section: *Log_Section
the Log_Section the message belongs to, or null. Passed on to the logger.
log :: (
    section: *Log_Section,
    format_string: string,
    args: ..Any,
    loc := #caller_location,
    flags := Log_Flags.NONE,
    user_flags: u32 = 0
)

Parameters

section: *Log_Section
format_string: string
args: ..Any
loc := #caller_location
flags := Log_Flags.NONE
user_flags: u32

See also