API

API

Trace.enableFunction.
Trace.enable()

Enables logging for all subsequent tracing macros and adds a "trace" (5) logging level.

source
Trace.@alertMacro.
@alert(args...)

Executes alert(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@criticalMacro.
@critical(args...)

Executes critical(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@debugMacro.
@debug(args...)

Executes debug(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@emergencyMacro.
@emergency(args...)

Executes emergency(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@errorMacro.
@error(args...)

Executes error(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@infoMacro.
@info(args...)

Executes info(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@logMacro.
@log(args...)

Executes log(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@noticeMacro.
@notice(args...)

Executes notice(args...) only when tracing is enabled (Trace.enable()).

source
Trace.@traceMacro.
@trace(logger, ex)

Monitors execution time and memory allocation for the expression and automatically logs those metrics to the logger.

source
Trace.@warnMacro.
@warn(args...)

Executes warn(args...) only when tracing is enabled (Trace.enable()).

source
TraceRecord <: Record

Stores extra metrics (e.g., execution time, memory allocated) about a function call for trace records.

source
Trace.traceFunction.
trace(f, logger, args...; kwargs...)

Wrapper function which measures the executions time and memory allocation of function f(args...; kwargs...) and logs the resulting TraceRecord.

source