Skip to content

setlog/alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alert

Send alert mails, configured via environment variables. UNIX only. Requires /usr/sbin/sendmail.

export [email protected]
export [email protected]
export ALERT_MAIL_TITLE_PREFIX=[PRODUCTION]
import "github.com/setlog/alert"

func main() {
    alert.Mail("Import failed!", "Failed to parse line %d", 42) // fmt.Sprintf-style formatting.
}