Overview
Advanced logging infrastructure with structured logs, powerful search, log streaming, and integrations with external log management systems. Status: 🔮 Planned for Q3 2026Current State
Today, Triform provides basic logging:- Execution logs viewable in UI
- Print statements captured from Actions
- Error messages and stack traces
- Retention per plan tier
What’s Coming
Structured Logging
Beyond plain text:- Searchable by field
- Aggregate and analyze
- Create dashboards
- Set up alerts
Log Levels
Standard severity levels:- TRACE: Most detailed
- DEBUG: Debugging information
- INFO: General information
- WARN: Warnings
- ERROR: Errors
- FATAL: Critical failures
- Dev: DEBUG level
- Staging: INFO level
- Production: WARN level
Advanced Search
Powerful queries:- Log level
- Timestamp range
- Component (Action, Agent, Flow)
- Custom fields
- Free text
- Regular expressions
Log Aggregation
Group and count:- Errors by type
- Actions by execution count
- Users by activity
- Cost by component
Log Streaming
Real-time logs:- Tail logs live
- WebSocket streaming
- Server-Sent Events
- Filter while streaming
Log Exports
Send logs elsewhere:- Datadog: APM and logs
- Splunk: Enterprise log management
- CloudWatch: AWS logs
- Elasticsearch: Search and analytics
- Custom webhook: Your own system
Log Context
Automatic enrichment:- Trace ID
- Execution ID
- User ID
- Project ID
- Environment
- Git commit (if integrated)
Sampling
Control volume:- Log all in dev
- Sample in production
- Always log errors
- Smart sampling (log slow requests)
Log Retention Policies
Custom retention:Use Cases
Debugging
Find issues quickly:Monitoring
Track system health:- Error rate trends
- Slow request identification
- Resource usage patterns
Analytics
Business insights:- User behavior analysis
- Feature usage tracking
- Performance metrics
Compliance
Audit trails:- Who accessed what
- When and from where
- What actions were taken
Cost Attribution
Track spending:- LLM token usage by component
- API calls by user
- Execution costs by Project
Log API
Log Dashboard
Visual log analysis:- Recent logs table
- Error rate chart
- Log volume by level
- Top error messages
- Slowest executions
Alerts on Logs
Get notified:Log Sampling Strategies
Tail-based sampling
Sample after execution:- Always keep errors
- Keep slow requests
- Sample normal requests
Head-based sampling
Sample at start:- Percentage-based (1%, 10%, 100%)
- Deterministic (by trace ID)
Priority sampling
Keep important logs:- All errors
- Specific users (VIP customers)
- High-value transactions
- Compliance-required events
Integration Examples
Datadog
Splunk
Custom Webhook
Performance Considerations
Logging overhead:- Structured logging: ~1-2ms per log
- Async logging: Minimal impact
- Sampling: Reduces volume and cost
- Compressed storage
- Tiered retention
- Auto-archive to S3
Pricing
Included in all plans:- Basic logging (current)
- Structured logging
- Search and filtering
- Extended retention (>90 days)
- High-volume exports
- Premium integrations
Timeline
Q3 2026: Structured logging, log levelsQ4 2026: Advanced search, streaming
2027 Q1: External integrations, alerts
Get Notified
Sign up: triform.ai/advanced-logging-betaQuestions?
- Join Discord #observability
- Email: product@triform.ai