Event logger feature
- Implemented
Truemail::Logger
class - Implemented
Truemail::Log::Event
class - Implemented
Truemail::Log::Serializer::Base
class - Implemented
Truemail::Log::Serializer::Text
class - Implemented
Truemail::Log::Serializer::Json
class - Updated
Truemail::Configuration
- Updated
Truemail::Validator
- Updated
Truemail::Validate::Regex
- Added changelog
- Updated gem version to
1.4.0
- Updated gem description
- Updated readme
Truemail gem allows to output tracking events to stdout/file or both of these. Please note, at least one of the outputs must exist. Tracking event by default is :error
Available tracking events
:all
, all detected events including success validation cases:unrecognized_error
, unrecognized errors only (whensmtp_safe_check = true
and SMTP server does not return an exact answer that the email does not exist):recognized_error
, recognized errors only:error
, recognized and unrecognized errors only
Truemail.configure do |config|
config.logger = { tracking_event: :all, stdout: true, log_absolute_path: '/home/app/log/truemail.log' }
end
Also starting from this version Truemail has built in JSON serializer for Truemail::Validator
instance, so you can represent your email validation result as json.
Truemail::Log::Serializer::Json.call(Truemail.validate('nonexistent_email@bestweb.com.ua'))