To use pino-applicationinsights
from the command line, you need to install it globally:
npm install -g pino-applicationinsights
Given an application foo
that logs via pino, you would use pino-applicationinsights
like so:
node foo | pino-applicationinsights --key blablabla
You can pass the following options via cli arguments:
Short command | Full command | Description |
---|---|---|
-V | --version | Output the version number |
-k | --key <key> | Instrumentation Key of the Azure Application Insights account |
-h | --help | Output usage information |
See the API documentation for details.