aboutsummaryrefslogtreecommitdiff
path: root/utils/log/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/log/log.go')
-rw-r--r--utils/log/log.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/log/log.go b/utils/log/log.go
new file mode 100644
index 00000000..c725c527
--- /dev/null
+++ b/utils/log/log.go
@@ -0,0 +1,21 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+// Package log is a wrapper of logs for short calling name.
+package log
+
+import (
+ "github.com/gogits/logs"
+)
+
+var logger *logs.BeeLogger
+
+func init() {
+ logger = logs.NewLogger(10000)
+ logger.SetLogger("console", "")
+}
+
+func Info(format string, v ...interface{}) {
+ logger.Info(format, v...)
+}