Lamian is an extension to exception notification system, which helps to add log of current query to the exception report
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.rubocop.yml
.travis.yml
Changelog.md
Gemfile
LICENSE
README.md
Rakefile
lamian.gemspec

README.md

Lamian

Coverage StatusBuild Status

Lamian is an in-memory logger, which content could be released for error messages. It is designed to work in pair with exception_notification gem inside rails aplications

Usage

  1. Add gem 'lamian' '~> 0.3.2' into your Gemfile
  2. Extend Rails.logger and any other loggers you want to mirror by Lamian::LoggerExtension: Lamian.extend_logger(logger)
  3. Add 'request_log' section inside your ExceptionNotification.configure (see ExceptionNotification README)
  4. ExceptionNotification's messages would have 'Request Log' section

Extended Usage

Add a 'request_log' section into ExceptionNotification's background section. Add Lamian.run { } around code with logs you want to collect. Note, that logs would be accessible only inside this section and removed after section end.

Contribution

Feel free to contribute by making PRs and Issues on GitHub You also can contact me using my email begdory4+lamian@gmail.com

TODO

  • It probably should be separated to lamian and lamian-rails gems. Rails dependency is never cool