beancount-gs/script/log.go

15 lines
294 B
Go
Raw Normal View History

2021-11-17 09:59:06 +00:00
package script
import (
"fmt"
"time"
)
func LogInfo(message string) {
2021-11-18 08:27:28 +00:00
fmt.Printf("[Info] [%s] System: %s\n", time.Now().Format("2006-01-02 15:04:05"), message)
2021-11-17 09:59:06 +00:00
}
func LogError(message string) {
2021-11-18 08:27:28 +00:00
fmt.Printf("[Error] [%s] System: %s\n", time.Now().Format("2006-01-02 15:04:05"), message)
2021-11-17 09:59:06 +00:00
}