flashmob / go-guerrilla

Mini SMTP server written in golang
MIT License
2.79k stars 366 forks source link

Expand Logging functionality #21

Closed flashmob closed 7 years ago

flashmob commented 8 years ago
flashmob commented 7 years ago

So, the server will behave like a real daemon - if a log file has been set in the config, it will detach from stderr and attach to that file. You can also set SIGHUP and it will detect if config changed and detach from old file and attach to new new file. It will also close and open existing unchanged handlers on SIGHUP. logrotate(8) here we come!