Class Trace
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.system.Trace
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
Component.BodyResult, Component.ComponentBody -
Field Summary
Fields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, interceptorService, logger, name, runtime -
Constructor Summary
ConstructorsConstructorDescriptionTrace()-------------------------------------------------------------------------- Constructor(s) -------------------------------------------------------------------------- -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) 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.components.Component
announce, getDeclaredAttributes, getName, invoke, processBody, processBody, setName, validateAttributes
-
Constructor Details
-
Trace
public Trace()-------------------------------------------------------------------------- Constructor(s) --------------------------------------------------------------------------
-
-
Method Details
-
_invoke
public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) 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.logfile in the logs directory of the runtime as well.If the
abortattribute 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
extraInfoattribute 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 ofvarfor this attribute as well.
-