Scoop API

scoop:scoop.log:0.1.0

Logger

class Logger

source · line 7
public
public class Logger public constructor(
    /** The caller-selected category included in every event. */
    public val target: String
)

A category handle that selects the current provider for each call. Lazy message functions run once after filtering; their exceptions become failure events instead of escaping to the caller.

function log

source · line 45
public
public fun log(level: LogLevel, cause: Throwable? = None, location: SourceLocation = currentSourceLocation(), message: () -> String): Unit

Evaluates the message once if enabled, retaining a thrown exception in a failure event.

function log

source · line 36
public
public fun log(level: LogLevel, message: String, cause: Throwable? = None, location: SourceLocation = currentSourceLocation()): Unit

Submits an already evaluated message after checking the current filter.

property target

source · line 9
public
public val target: String

get: public read-only

The caller-selected category included in every event.