Features
Deep dive into Vestig's core features.
Structured Output
Vestig outputs logs as JSON by default in production, making them easy to parse and analyze with tools like Datadog, Splunk, or CloudWatch.
Output:
Sanitization
Vestig automatically detects and sanitizes sensitive data to prevent accidental PII exposure in logs.
Default Sensitive Fields
These field names are automatically redacted:
password,pass,pwdtoken,access_token,refresh_tokenapi_key,apikey,secretauthorization,bearer,authsession_id,sessionid,cookiecredit_card,creditcard,cvvssn,social_security
Pattern-Based Detection
Vestig also detects patterns in values:
Custom Sensitive Fields
Add your own sensitive field patterns:
Context Propagation
Automatically correlate logs across your entire request lifecycle using AsyncLocalStorage.
Setting Up Context
Accessing Context
All logs within the context automatically include correlation IDs:
Async Support
Context is preserved across async operations:
Child Loggers
Create namespaced loggers for different parts of your application:
Chained Namespaces
Child loggers can be nested:
Overriding Config
Child loggers can override parent configuration:
Error Handling
Vestig serializes errors with full stack traces:
Output includes:
Runtime Detection
Vestig automatically detects the runtime environment: