onkel-dirtus / logger_file_backend

MIT License
307 stars 128 forks source link

Support elixir 1.6 logger #48

Closed alirajabi closed 6 years ago

alirajabi commented 6 years ago

Elixir logger had an issue on heavy load So Elixir added some new features in new version like sync_threshold and discard_threshold to improve performance.

Please add these features

HugoLnx commented 6 years ago

Hi, @alirajabi ! These options does not depend on Backend implementation. On sync mode Logger will use :gen_event.sync_notify and on async_mode it will use :gen_event.notify. As you can see on logger.ex#L780.

And when Logger is on discard mode it will only stop notifying the backend, as you can see on logger.ex#L615

alirajabi commented 6 years ago

Thanks for answer @HugoLnx