func LogPGT(ticket *types.Ticket, message string) {
    log("LogPGT", fmt.Sprintf("[%s] [%s] %s", ticket.Service, ticket.Ticket, message))
}
LogPGT prints PGT related log message
package tools
import (
    "fmt"
    "time"
    "net"
    "net/http"
    "github.com/matthewvalimaki/cas-server/types"
)
func timestamp() string {
    var timeNow = time.Now()
    return timeNow.Format(time.RFC3339)
}
func log(messageType string, message string) {
    fmt.Println(fmt.Sprintf("[%s] [%s] %s", timestamp(), messageType, message))
}
func Log(message string) {   
    log("generic", message)
}
func LogError(message string) {
    log("error", message)
}
func LogST(ticket *types.Ticket, message string) {
    log("ST", fmt.Sprintf("[%s] [%s] %s", ticket.Service, ticket.Ticket, message))
}