0.0
The project is in a healthy, maintained state
Command line tool to download environment logs by date range.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Development

~> 2.2
>= 0
~> 10.0
~> 3.0
 Project Readme

range_logger

range_logger is range-based logs analyzer

Installation

Gemfile:

gem 'range_logger'

Run:

$ bundle install

Or install it yourself as:

$ gem install range_logger

Usage

In your Rails app directory execute range_logger with the next mandatory options:

  • path - path to log.file;
  • --from or -f - range start date;
  • --to or -t - range end date.

Example

$ range_logger log/production.log --from '8-10-2021 8:10' --to '10-10-221 12:30'
$ range_logger log/production.log --from '25/10/2021' --to 'yesterday'
$ range_logger log/production.log --from '4 days ago'

Find more available date range options https://github.com/mojombo/chronic.

Running this command will create the new log file.

License

The gem is available as open source under the terms of the MIT License.