Log Analyzer CLI App
npm i trog-cli
trog tail [options] file
| Argument | Type | Description |
|---|---|---|
| file | string | path to the file which tail will be performed |
| Param | Type | Description |
|---|---|---|
| -n, --number-lines | string | Number of lines to print to log. Default: 10 |
| -e, --encoding | string | encooding of text to print. Default: utf8 |
| -f, --follow | null | Follow file for any additions. Default: false |
| -h or --help | null | Display help |
Description: Similar to normal tail. Tail a file.
trog find [options] file searchText
| Argument | Type | Description |
|---|---|---|
| file | string | path to the file which find will be performed |
| searchText | string | desired text to be found in file |
| Param | Type | Description |
|---|---|---|
| -A, --After-value | string | number of lines to print before occurance of desired find. Default: 5 |
| -B, --Before-value | string | number of lines to print after occurance of desired find. Default: 5 |
| -h or --help | null | Display help |
Description: Opens interactive window with all the finds in a file. User can jump between next and previous using 'n' and 'p' keys and scroll up and down.
trog log [options] file
| Argument | Type | Description |
|---|---|---|
| file | string | path to the file which log will be performed |
| Param | Type | Description |
|---|---|---|
| -e, --encoding | string | encooding of text to print. Default: utf8 |
| -h or --help | null | Display help |
Description: Interactive view of watching any changes to file with Filter and Highlight. Filter and Highlight accept REGEX.


