Sha256: 0bd1a67f87d4e4c023b74a5ac9bcbd3626f913c44335a8683553484fb53c65b5
Contents?: true
Size: 960 Bytes
Versions: 5
Compression:
Stored size: 960 Bytes
Contents
# LogParser A simple class for searching through a log ## Installation Add this line to your application's Gemfile: gem 'log_parser' And then execute: $ bundle Or install it yourself as: $ gem install log_parser ## Usage The class offers a some methods for scanning through a log `by_message(msg)`, `erors`, `warnings`, `since(datetime)` and `uniq`. These methods can be chained together to refine your search. For example: ```Ruby log = LogParser::Client.new('some.log') log.errors.by_message('authentication failed').since(1.day.ago) #=> ["[2014-11-13T23:12:14-07:00] ERROR [page_id 95239] Authentication failed with token ..."] ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/log_parser/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
log_parser-2.0.1 | README.md |
log_parser-2.0.0 | README.md |
log_parser-1.2.1 | README.md |
log_parser-1.2.0 | README.md |
log_parser-1.1.1 | README.md |