The result to trace.
The named parameters.
Optionalafter?: EventCallbackA function to call after displaying the output.
after is always called even if not allowed.
Optionalallow?: boolean | AllowCallbackA function to call to allow tracing.
If it returns false, tracing is skipped but after is still called.
If it returns a non-boolean value, it will display the allow result instead of the value.
Optionalbefore?: EventCallbackA function to call before displaying the output.
If it returns false, tracing is skipped.
Optionalformat?: FormatAlternative output format.
Optionalinputs?: Record<string, any>Dictionary of additional inputs.
Optionalname?: stringThe name of the function being traced.
The traced value.
Displays formatted result and inputs for the current thread using a given format.
Optionally calls
allow,before, andafterfunctions with the data.allow,before, andafterwill receive a parameterdatawith the allowed inputs. The following meta values will also be available:meta__: List of meta keys including the name key.thread_id__: ID of the thread being executed.allow_input_count__: Total number of inputs that are allowed.input_count__: Total number of inputs being captured.allow__: Iffalseit was allowed. Use this for theaftercallback.output__: Text passed tobeforewithoutnew_line.name: Thevalueparameter.Example