aboutsummaryrefslogtreecommitdiff
path: root/clog/clog.go
diff options
context:
space:
mode:
Diffstat (limited to 'clog/clog.go')
-rw-r--r--clog/clog.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/clog/clog.go b/clog/clog.go
index b876574..d9162b0 100644
--- a/clog/clog.go
+++ b/clog/clog.go
@@ -30,3 +30,8 @@ func Debug(str string, keyvals ...any) {
func Info(str string, keyvals ...any) {
log("INFO "+str, keyvals)
}
+
+func Fatal(exit int, str string, keyvals ...any) {
+ log("FATAL "+str, keyvals)
+ os.Exit(exit)
+}