mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-02 17:07:02 +00:00
maillog: Support logging to stdout and stderr
This patch adds support for writing maillog to stdout and stderr, which can be desirable in certain environments. Thanks to Denys Vitali <denys@denv.it> who sent an alternative patch for this functionality.
This commit is contained in:
@@ -93,6 +93,7 @@ type Config struct {
|
||||
DropCharacters string `protobuf:"bytes,11,opt,name=drop_characters,json=dropCharacters,proto3" json:"drop_characters,omitempty"`
|
||||
// Path where to write the mail log to.
|
||||
// If "<syslog>", log using the syslog (at MAIL|INFO priority).
|
||||
// If "<stdout>", log to stdout; if "<stderr>", log to stderr.
|
||||
// Default: <syslog>
|
||||
MailLogPath string `protobuf:"bytes,12,opt,name=mail_log_path,json=mailLogPath,proto3" json:"mail_log_path,omitempty"`
|
||||
// Enable dovecot authentication.
|
||||
|
||||
@@ -77,6 +77,7 @@ message Config {
|
||||
|
||||
// Path where to write the mail log to.
|
||||
// If "<syslog>", log using the syslog (at MAIL|INFO priority).
|
||||
// If "<stdout>", log to stdout; if "<stderr>", log to stderr.
|
||||
// Default: <syslog>
|
||||
string mail_log_path = 12;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user