# Trace

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.

## Component Signature

```
<bx:Trace abort=[boolean]
category=[String]
text=[string]
type=[string]
extrainfo=[any] />
```

### Attributes

| Atrribute   | Type      | Required | Description                                                                                                                                  | Default       |
| ----------- | --------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `abort`     | `boolean` | `false`  | If true, the current request will be aborted after the trace call. Default is false.                                                         | `false`       |
| `category`  | `String`  | `false`  | The category of the trace message. Default is an empty string.                                                                               |               |
| `text`      | `string`  | `true`   | The text of the trace message. Required.                                                                                                     |               |
| `type`      | `string`  | `true`   | The type of the trace message. Default is "Information".                                                                                     | `Information` |
| `extrainfo` | `any`     | `false`  | Any extra information to be logged with the trace message. This can be simple or a complex object. We will convert it to string for logging. |               |

## Examples


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-language/reference/components/system/trace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
