Output Behavior
Logixlysia supports three types of logging outputs:- Console Logging - Built-in console output
- File Logging - Built-in file output
- Transport Logging - Custom external services
Controlling Outputs
- Default: Console + File (if
logFilePathis set) + Transports disableInternalLogger: true: Disables console logging onlydisableFileLogging: true: Disables file logging onlyuseTransportsOnly: true: Disables both console and file, uses only transports
Basic Transport
External Services
Elasticsearch
MongoDB
Slack
Multiple Transports
Transport-Only Logging
Best Practices
- Handle transport errors gracefully
- Implement retry logic for critical transports
- Use async transports for better performance
- Secure transport credentials
- Avoid logging secrets or PII
- Use
useTransportsOnlyfor production environments where you only want external logging