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.
public enum Area {
OpportunityManagement,
LeadConversion,
Community,
RestAPI,
Accounts,
LWC,
Flow
}
These values should represent functional areas from a business perspective (e.g., DealRegistration, PartnerCommunity, CustomPipelineUI).
Category
Provides general classification of log entries at a high level.
public enum Category {
Apex,
Flow,
LWC,
Aura,
Warning,
Event,
Debug,
Integration
}
These values reflect what kind of log entry they represent at a high level.
Level
Defines log severity levels, listed from least verbose to most verbose.
public enum Level {
ERROR,
WARNING,
INFO,
DEBUG,
FINE,
FINER,
FINEST
}
Type
Provides more specific technical classification of log entries.
public enum Type {
Backend,
Frontend,
DMLResult,
LongRunningRequest,
ConcurrentRequestsLimit,
AccountTrigger
}
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.
Last updated