Documentation ¶
Index ¶
- Variables
- func ALERT(subject string, routineName string, functionName string, format string, ...)
- func COMPLETED(routineName string, functionName string)
- func COMPLETED_ALERT(subject string, routineName string, functionName string, format string, ...)
- func COMPLETED_ERROR(err error, routineName string, functionName string)
- func COMPLETED_ERRORf(err error, routineName string, functionName string, format string, ...)
- func COMPLETEDf(routineName string, functionName string, format string, a ...interface{})
- func ERROR(err error, routineName string, functionName string)
- func ERRORf(err error, routineName string, functionName string, format string, ...)
- func INFO(routineName string, functionName string, format string, a ...interface{})
- func STARTED(routineName string, functionName string)
- func STARTEDf(routineName string, functionName string, format string, a ...interface{})
- func SendEmail(sessionId string, subject string, message string) (err error)
- func SendProblemEmail(sessionId string, subject string, problems []string) (err error)
- func TRACE(routineName string, functionName string, format string, a ...interface{})
- func WARN(routineName string, functionName string, format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmailHost string // Host address to the email server EmailPort int // Host port to the email EmailUserName string // The email user for authentication EmailPassword string // The password for authentication EmailTo string // Address to send messages EmailAlertSubject string // The subject for email alerts )
View Source
var (
Serialize sync.Mutex
)
Functions ¶
func ALERT ¶
func ALERT(subject string, routineName string, functionName string, format string, a ...interface{})
ALERT write to the ERROR destination and sends email alert
func COMPLETED_ALERT ¶
func COMPLETED_ALERT(subject string, routineName string, functionName string, format string, a ...interface{})
COMPLETED_ALERT write to the ERROR destination, writes a Completed tag to the log line and sends email alert
func COMPLETED_ERROR ¶
func COMPLETED_ERRORf ¶
func COMPLETEDf ¶
func SendProblemEmail ¶
SendProblemEmail sends an email with the slice of problems
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.