Class Trace
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.system.Trace
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke
(IBoxContext context, ArgumentsScope arguments) Traces messages into the tracing facilites so they can be display by the running runtime either in console, or debug output or whatever the runtime is configured to do.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
Trace
public Trace()Constructor
-
-
Method Details
-
_invoke
Traces messages into the tracing facilites so they can be display by the running runtime either in console, or debug output or whatever the runtime is configured to do.It will track from where the trace call was made and the message will be logged with the category, type and text provided.
All tracers will be sent to the
trace.log
file in the logs directory of the runtime as well.If the
abort
attribute is set to true, the current request will be aborted after the trace call.Tracers will only be displayed if the runtime is in debug mode.. However, all traces will be logged regardless of the debug mode flag.
The
extraInfo
attribute is optional and can be any simple or complex object. We will convert it to string for logging using thetoString()
method on the object. You can also use the alias ofvar
for this attribute as well.
-