Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments
at main 27 lines 432 B view raw
1package logger 2 3import ( 4 "log" 5 "os" 6) 7 8var ( 9 infoLog = log.New(os.Stdout, "", log.LstdFlags) 10 errorLog = log.New(os.Stderr, "", log.LstdFlags) 11) 12 13func Info(format string, args ...any) { 14 infoLog.Printf(format, args...) 15} 16 17func Infoln(msg string) { 18 infoLog.Println(msg) 19} 20 21func Error(format string, args ...any) { 22 errorLog.Printf(format, args...) 23} 24 25func Fatal(format string, args ...any) { 26 errorLog.Fatalf(format, args...) 27}