truemail-rb / truemail

🚀 Configurable framework agnostic plain Ruby 📨 email validator/verifier. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.

Home Page:https://truemail-rb.org/truemail-gem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Ability to use custom logger in event logger

bestwebua opened this issue · comments

By default Truemail uses default logger class from Ruby stdlib, Logger. But nice to have an ability to override this behavior passing own class in logger configuration.

Truemail.configure do |config|
  config.logger = {
    logger_class: MyCustomLogger,
    tracking_event: :all,
    stdout: true,
    log_absolute_path: '/home/app/log/truemail.log'
    }
end

Already in the latest release.