go-mail/log
Winni Neessen 1c5c1e318c
#136: Refactor logging for clearer messaging direction
The logging system in the smtp.go and log package has been refactored. A new custom log type `Log` was introduced, that includes the message direction, format and arguments. The `Logger` interface and the `Stdlog` implementation were modified to accept this new type. This change provides a clearer understanding of message direction inside logs, allowing for easier debugging and reduced complexity. This change does not affect features or disrupt user functionality. Additionally, it allows for custom implementations of the log.Logger interface to without being forced to use the C --> S/C <-- S direction logging.
2023-08-02 11:43:45 +02:00
..
log.go #136: Refactor logging for clearer messaging direction 2023-08-02 11:43:45 +02:00
stdlog.go #136: Refactor logging for clearer messaging direction 2023-08-02 11:43:45 +02:00
stdlog_test.go #136: Refactor logging for clearer messaging direction 2023-08-02 11:43:45 +02:00