gen-smtp / gen_smtp

The extensible Erlang SMTP client and server library.
Other
683 stars 266 forks source link

Use OTP logger directly; drop `hut` dependency #309

Closed seriyps closed 2 years ago

seriyps commented 2 years ago

Since we are already OTP-21+, there is no real reason to rely on hut for logger abstraction.

It replaces #267 since other PR seems stuck.

This PR also adds domain metadata to each log gen_smtp generates so it's easier to filter logs generated by gen_smtp using logger_filters:domain.

Most of the changes were made by just running sed commands like this: sed -i 's/\?log(warning, /\?LOG_WARNING(/' src/*.erl