Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 718 Bytes

CLI.md

File metadata and controls

27 lines (18 loc) · 718 Bytes

CLI

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 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.