# Pharos Triton

## Pharos Triton

- [About Pharos Triton](https://triton.pharos.ai/pharos-triton/readme.md): Just as the mighty Triton delivered important messages from the deep, Pharos Triton sends you crucial insights from the depths of your Salesforce automation.
- [Installing Pharos Triton](https://triton.pharos.ai/pharos-triton/installing-pharos-triton.md): Your journey into logging starts here! This article details how to set up the Pharos Triton tools so you can incorporate logging into your own code base.
- [Apex Logging Basics](https://triton.pharos.ai/pharos-triton/apex-logging-basics.md): This articles explains the structure and some of the basic principles behind Pharos Triton.
- [Common Apex Usage Patters](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters.md): This articles details of some of the more common logging patterns.
- [Batch Logging](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters/batch-logging.md): This article demonstrates some common approaches to batch logging.
- [Integration Logs](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters/integration-logs.md): If your Salesforce instance is talking to external services via REST or other types of APIs, Pharos Triton can perform a certain type of logging that helps troubleshoot those integrations.
- [Apex Rest Logging](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters/apex-rest-logging.md)
- [Full Control with TritonBuilder](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters/full-control-with-tritonbuilder.md): With TritonBuilder, logging is no longer a tedious task but an art form. Embrace the power of structured logging and let TritonBuilder be your guide. Happy logging!
- [Log Levels](https://triton.pharos.ai/pharos-triton/common-apex-usage-patters/log-levels.md): This article explains how log levels work in Triton and how to configure them using custom metadata.
- [Beyond Apex](https://triton.pharos.ai/pharos-triton/beyond-apex.md): In this series of articles we'll cover more advanced logging scenarios that extend beyond Apex code.
- [LWC](https://triton.pharos.ai/pharos-triton/beyond-apex/lwc.md): In this article we'll take a look at logging in LWC components and familiarize ourselves with Triton's JS interface.
- [LWC Transaction Management](https://triton.pharos.ai/pharos-triton/beyond-apex/lwctransaction.md): Learn how Triton manages LWC transactions and logging sessions, including automatic transaction management and best practices.
- [LWC and Apex](https://triton.pharos.ai/pharos-triton/beyond-apex/lwc-and-apex.md): In this article we'll describe the process for logging in LWC in conjunction with Apex. We will examine how Triton associates two different types of logs together under a single umbrella.
- [Platform Cache for Transactions](https://triton.pharos.ai/pharos-triton/beyond-apex/lwc-and-apex-cache.md): Learn how to use Salesforce Platform Cache with Triton to manage transaction IDs across different contexts without direct parameter passing.
- [Flows](https://triton.pharos.ai/pharos-triton/beyond-apex/flows.md): Flows are a powerful low-code automation tool, and one that is often overlooked by logging frameworks. Let's take a look at how to incorporate Pharos Triton logging into your declarative powerhouse.
- [LWC, Apex and Flows](https://triton.pharos.ai/pharos-triton/beyond-apex/lwc-apex-and-flows.md): In this article we will take a look at a more complex logging scenario involving an LWC component, a corresponding Apex controller, and an autolaunched Flow.
- [Profiling](https://triton.pharos.ai/pharos-triton/beyond-apex/profiling.md): Capture rich performance telemetry from your LWC components — backend calls, user interactions, render cycles, and custom marks — using Triton's built-in profiling APIs.
- [Backend Calls](https://triton.pharos.ai/pharos-triton/beyond-apex/profiling/backend-calls.md): Wrap Apex calls in timeBackendCall(...) to capture durations, start/complete events, and exceptions — with four flexible error-handling scenarios.
- [User Interactions](https://triton.pharos.ai/pharos-triton/beyond-apex/profiling/user-interactions.md): Time user-driven flows — form submissions, multi-step actions, and nested backend calls — with timeUserInteraction(...) and the unified PerformanceCallBuilder.
- [Component Lifecycle](https://triton.pharos.ai/pharos-triton/beyond-apex/profiling/component-lifecycle.md): Track LWC mount/unmount events and render counts with per-instance isolation, Locker Service-safe timing, and zero-effort multi-instance support.
- [Custom Performance Marks](https://triton.pharos.ai/pharos-triton/beyond-apex/profiling/custom-marks.md): Drop browser-style performance marks anywhere in your LWC code with startPerformanceMark / endPerformanceMark — fully per-instance and Locker Service-safe.
- [Best Practices & Standards](https://triton.pharos.ai/pharos-triton/triton-best-practices.md): Comprehensive best practices and standards for implementing Pharos Triton logging across Salesforce Apex, LWC, and Flow with real-world examples and practical guidance.
- [Core Principles](https://triton.pharos.ai/pharos-triton/triton-best-practices/core-principles.md): Understanding the foundational goals and principles of effective Triton logging implementation across Salesforce technologies.
- [Log Levels: When to Use What](https://triton.pharos.ai/pharos-triton/triton-best-practices/log-levels-and-usage.md): Understanding when and how to use different log levels appropriately in Triton logging for optimal debugging and monitoring.
- [Templates & the Builder Pattern](https://triton.pharos.ai/pharos-triton/triton-best-practices/templates-and-builder-pattern.md): Leveraging templates and the builder pattern for consistent, maintainable Triton logging across Apex and LWC.
- [Buffering & Flushing](https://triton.pharos.ai/pharos-triton/triton-best-practices/buffering-and-flushing.md): Smart strategies for buffering and flushing logs in Triton for optimal performance and reliability across Apex and LWC.
- [Transaction Management](https://triton.pharos.ai/pharos-triton/triton-best-practices/transaction-management.md): Correlating logs across LWC → Apex → Flow boundaries using transaction management for end-to-end traceability.
- [Implementation Patterns](https://triton.pharos.ai/pharos-triton/triton-best-practices/implementation-patterns.md): Real-world implementation patterns for Triton logging across different Salesforce contexts including triggers, batches, queueables, and flows.
- [Context & Related Objects](https://triton.pharos.ai/pharos-triton/triton-best-practices/context-and-related-objects.md): Maximizing the value of your log data through rich context and related object tracking in Triton logging.
- [Taxonomy & Standards](https://triton.pharos.ai/pharos-triton/triton-best-practices/taxonomy-and-standards.md): Establishing consistent classification systems and taxonomy standards for Triton logging across your Salesforce org.
- [Exception Handling](https://triton.pharos.ai/pharos-triton/triton-best-practices/exception-handling.md): Best practices for error logging and debugging with Triton, including exception handling patterns and debugging strategies.
- [Standards Enforcement](https://triton.pharos.ai/pharos-triton/triton-best-practices/standards-enforcement.md): Code review checklists and CI automation for enforcing Triton logging standards across your Salesforce org.
- [Legacy Code Logging Rollout](https://triton.pharos.ai/pharos-triton/triton-best-practices/legacy-migration.md): Strategies for rolling out Triton logging in existing Salesforce orgs with legacy automation and code, addressing the challenges of working with undocumented and poorly understood systems.
- [Apex](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference.md): This article covers the base Apex methods you'll need to create log records.
- [Triton](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/triton.md): This article covers all the logging methods, including transaction management and DML result logging.
- [TritonBuilder](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonbuilder.md): The TritonBuilder class provides a comprehensive and flexible API for creating structured log records in Salesforce.
- [TritonTypes](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritontypes.md): This article covers the enums and constants used throughout the Triton logging framework.
- [TritonLwc](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonlwc.md): Documentation for the TritonLwc Apex class that provides core logging functionality for Lightning Web Components.
- [ComponentLog](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonlwc/componentlog.md): Documentation for the ComponentLog wrapper class used to structure and transmit log data from Lightning Web Components.
- [Component](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonlwc/component.md): Documentation for the Component wrapper class used to capture LWC component context information.
- [Error](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonlwc/error.md): Documentation for the Error wrapper class used to capture and structure error information from Lightning Web Components.
- [RuntimeInfo](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonlwc/runtimeinfo.md): Documentation for the RuntimeInfo wrapper class used to capture detailed runtime context and performance metrics from Lightning Web Components.
- [TritonFlow](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonflow.md): Documentation for the TritonFlow Apex class that provides core logging functionality for Flow Builder and Process Builder.
- [FlowLog](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonflow/flowlog.md): Documentation for the FlowLog wrapper class used to structure and transmit log data from Flow Builder and Process Builder.
- [TritonHelper](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonhelper.md): The TritonHelper class provides utility methods and builder classes for the Triton logging framework.
- [PostProcessingControlsBuilder](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonhelper/postprocessingcontrolsbuilder.md): This builder class provides a quick and easy way to set post processing flags. It can be found inside the TritonTypes.cls. These flags determine what type of post processing Pharos performs for a log
- [LogBuilder](https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/logbuilder.md): Triton utilizes the builder design pattern to enable a quick and easy-to-read log creation routine.
- [LWC](https://triton.pharos.ai/pharos-triton/methods-reference/lwc.md)
- [Triton](https://triton.pharos.ai/pharos-triton/methods-reference/lwc/triton.md)
- [TritonBuilder](https://triton.pharos.ai/pharos-triton/methods-reference/lwc/tritonbuilder.md)
- [TritonUtils](https://triton.pharos.ai/pharos-triton/methods-reference/lwc/tritonutils.md)
- [Release Notes](https://triton.pharos.ai/pharos-triton/release-notes/release-notes.md): Notable changes in each Pharos Triton release — new features, fixes, and upgrade guidance.
- [1.42](https://triton.pharos.ai/pharos-triton/release-notes/release-notes/1.42.md): Release notes for Pharos Triton 1.42 — LWC performance tracking, Apex governor-limit tracking, full Jest coverage, and Log\_\_c metadata fixes.
- [Help and Support](https://triton.pharos.ai/pharos-triton/help-and-support.md): Instructions for getting support on Pharos or Triton.
