LogSense - Node Logger
LogSense is a powerful service to collect and analyze row and structured logs from your server or serverless Node.
You don't need to modify your current logging statements. We'll automatically send your messages and error or any other objects as log parameters. Row messages are auto-discovered into patterns.
Installation
- Run
npm i logsense
- In your main file add:const logsense = 'YOUR_LOGSENSE_CUSTOMER_TOKEN'logsense
For Winston add:
const logsense = 'YOUR_LOGSENSE_CUSTOMER_TOKEN'logger
Usage
Common messages are auto-discovered into patterns:
const sendEmail = { console}
Last argument is used for structured logging:
const sendEmail = { console}
Discovered and structured parameters can be used in charts: