> For the complete documentation index, see [llms.txt](https://triton.pharos.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://triton.pharos.ai/methods-reference/apex-methods-reference/tritontypes.md).

# TritonTypes

This article covers the enums and constants used throughout the Triton logging framework.

## Enums

### Area

Represents the functional area from a business perspective. This value is written to the Functional Area field.

{% code lineNumbers="true" %}

```apex
public enum Area {
    OpportunityManagement,
    LeadConversion,
    Community,
    RestAPI,
    Accounts,
    LWC,
    Flow
}
```

{% endcode %}

These values should represent functional areas from a business perspective (e.g., DealRegistration, PartnerCommunity, CustomPipelineUI).

### Category

Identifies the technology that produced the log entry.

{% code lineNumbers="true" %}

```apex
public enum Category {
    Apex,
    Flow,
    LWC,
    Aura
}
```

{% endcode %}

These values answer "what technology produced this log?" — severity is expressed by `Level`, never by Category.

### Level

Defines log severity levels, listed from least verbose to most verbose.

{% code lineNumbers="true" %}

```apex
public enum Level {
    ERROR,
    WARNING,
    INFO,
    DEBUG,
    FINE,
    FINER,
    FINEST
}
```

{% endcode %}

### Type

Provides more specific technical classification of log entries.

{% code lineNumbers="true" %}

```apex
public enum Type {
    Backend,
    Frontend,
    DMLResult,
    LongRunningRequest,
    ConcurrentRequestsLimit,
    AccountTrigger,
    BackendCall,
    ComponentLifecycle,
    ComponentRender,
    UserInteraction,
    Performance
}
```

{% endcode %}

When an Exception is provided, the logging methods will use the Exception type. If no type is specified for exceptions, Backend is used as default.

The last five values — `BackendCall`, `ComponentLifecycle`, `ComponentRender`, `UserInteraction`, and `Performance` — are set by the LWC profiling APIs. See [Profiling](https://triton.pharos.ai/beyond-apex/profiling.md). `Performance` is also the type Apex [performance marks](https://triton.pharos.ai/common-apex-usage-patters/performance-marks.md) emit.
