Skip to content

Commit

Permalink
Limit number of log lines stored in memory (#44)
Browse files Browse the repository at this point in the history
* limit log lines

* add Lamian.config.max_log_lines

* update gems

* bump version

* add nodoc
  • Loading branch information
tycooon authored Jun 28, 2024
1 parent e8b4589 commit 1a412a3
Show file tree
Hide file tree
Showing 12 changed files with 236 additions and 177 deletions.
16 changes: 8 additions & 8 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# Lamian version changes (since 0.1.0)
## 1.9.0

Update this on a pull request, under `Lamian::VERSION`
(also known as next version). If this constant would be changed without release,
I'll update it here too
* Add `max_log_lines` config option to limit number of most recent log lines stored in the log device

## 1.8.0

* Minor dependency updates;

## 1.3.0

* Add support for the (new sentry gem)[https://github.com/getsentry/sentry-ruby].

## 1.2.0

* Add `raven_log_size_limit` config option for limiting amount of data sent to sentry (defaults to `500_000`)

## 1.1.0

* Add support for sentry and sidekiq

## 1.0.0
Expand All @@ -30,29 +32,27 @@ which ruins concept of single entry point :(. Also tied it to lamian instance

* `e57e6cec` Changed rails dependency from `~> 4.2` to `>= 4.2`


## 0.3.1

* 34ca83b5 Fixed formatting

Stabilized formatting api, which removes control sequences from loggers data.
E.g. `"[23mNice, lol[0m\n"` becomes `"Nice, lol\n"`


## 0.3.0

* `d24f895b` API update

Updated API, so lamian is now forced to be used with block.
It also simplified usage outside a middleware


## 0.2.0

* `3166517e` Added integrtation with rails

Injected middleware before `ExceptionNotification`, so `ExceptionNotification`
can use current log without any configuration. Also added some views


## 0.1.0

* `62eb8685` Made test version to check it's integration with rails application
14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@ source "https://rubygems.org"

# Specify your gem's dependencies in lamian.gemspec
gemspec

gem "bundler-audit"
gem "ci-helper"
gem "launchy"
gem "pry"
gem "rake"
gem "rspec"
gem "rubocop-config-umbrellio"
gem "semantic_logger"
gem "sentry-raven"
gem "sentry-ruby"
gem "simplecov"
gem "simplecov-lcov"
gem "yard"
Loading

0 comments on commit 1a412a3

Please sign in to comment.