CLI

July 28, 2020 ยท View on GitHub

To use pino-applicationinsights from the command line, you need to install it globally:

npm install -g pino-applicationinsights

Example

Given an application foo that logs via pino, you would use pino-applicationinsights like so:

node foo | pino-applicationinsights --key blablabla

Usage

You can pass the following options via cli arguments:

Short commandFull commandDescription
-V--versionOutput the version number
-k--key <key>Instrumentation Key of the Azure Application Insights account
-h--helpOutput usage information

See the API documentation for details.