Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1 KB

CLI.md

File metadata and controls

31 lines (22 loc) · 1 KB

CLI

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

$ npm install -g pino-azuretable

Example

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

$ node foo | pino-azuretable --account storageaccount --key blablabla

Usage

You can pass the following options via cli arguments:

Short command Full command Description
-V --version Output the version number
-a --account <account> The name of the Azure Storage Account
-k --key <key> The access key of the Azure Storage Account
-t --table <table> The name of the table to storage the messages in
-p --partition <partition> The partition key to use in the table
-b --batch <size> The number of log messages to send as a single batch (defaults to 1)
-h --help Output usage information

See the API documentation for details.