CLI

March 30, 2019 ยท View on GitHub

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 commandFull commandDescription
-V--versionOutput 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--helpOutput usage information

See the API documentation for details.