logdna / logdna-cli

The LogDNA CLI allows you to signup for a new account and tail your server logs right from the command line.
https://logdna.com
MIT License
27 stars 21 forks source link

Natural language processing of time. Add --timeframe, dev logging, d… #49

Closed braxtonj closed 3 years ago

braxtonj commented 3 years ago

…oc updates

Added natural language processing to search via Chrono library

Extended search to use --timeframe for full range parsing and incorporated nl into --from and --to

Added doc examples explaining use. Added help to search to include NL explanation.

Added developer logs using best practices (5Ws - who, what, why, where, and when) that sends to console AND LogDNA for troubleshooting. Simply add the option -d or --dev to commands. LOGDNA_API_KEY environment variable required to pipe logs to LogDNA

TODO: Dev logs currently only in index.js and specifically --timeframe, --from and --to. Extend for full coverage

TODO: allow for implied date reference ("7PM" instead of "today at 7PM")

TODO: systematic testing