go-mail/smtp
Winni Neessen 6633591b51
Implement Logger interface
As stated in https://github.com/wneessen/go-mail/pull/102#issuecomment-1411956040 it would be beneficial if, instead of forcing the Go stdlib logger on the user to provide a simple interface and use that for logging purposes.

This PR implements this simple log.Logger interface as well as a standard logger that satisfies this interface. If no custom logger is provided, the Stdlog will be used (which makes use of the Go stdlib again).

Accordingly, a `Client.WithLogger` and `Client.SetLogger` have been implemented. Same applies for the smtp counterparts.
2023-02-03 10:19:26 +01:00
..
auth.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
auth_cram_md5.go Re-introduce backwards compatibility with Go 1.17 and Go 1.18 2023-01-13 17:34:41 +01:00
auth_cram_md5_118.go Added backport comments as reference 2023-01-13 17:42:05 +01:00
auth_login.go Switched copyright header from me to "The go-mail Authors" 2023-01-15 16:14:19 +01:00
auth_plain.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
example_test.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
LICENSE Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
smtp.go Implement Logger interface 2023-02-03 10:19:26 +01:00
smtp_ehlo.go Re-introduce backwards compatibility with Go 1.17 and Go 1.18 2023-01-13 17:34:41 +01:00
smtp_ehlo_117.go Added backport comments as reference 2023-01-13 17:42:05 +01:00
smtp_test.go Implement Logger interface 2023-02-03 10:19:26 +01:00