# Azure Logger CLI

*CLI to consume Azure storage table data generated by [azure-logger](https://www.npmjs.com/package/azure-logger)*

## Installation

```
npm install --global azure-logger-cli
```

## Usage

> :bulb: Before you run this application you should set your user environment variables `AZURE_STORAGE_ACCOUNT` and `AZURE_STORAGE_ACCESS_KEY` to the storage account name and the corresponding key (ensure that you set them in user scope and not system scope so only you have access to them).  You can also pass these as parameters (`--account` and `--key`) when calling `azlog` if you'd rather not store this information in user environment variables

```
azlog [options]
```

```
  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -a, --account <accountName>  azure storage account name
    -k, --key <key>              storage key
    -t, --table <table>          table name
    -s, --search <search>        search string
    -f, --first <first>          top count to limit results
    -x, --exclude <exclude>      exclude entries containing
    -l, --local                  show local time
    -o, --order                  order by date (default to asc)
    -d, --desc                   order by date descending
```