func Criticalf(format string, args ...interface{}) {
	log.Criticalf(format, args...)
}
Criticalf logs a message using CRITICAL as log level
package log
import (
	"os"
	"share/directory"
	"strings"
	"github.com/op/go-logging"
)
var log = logging.MustGetLogger("example")
func Init(name string) {
	b2 := logging.NewLogBackend(os.Stderr, "", 0)
	path := directory.Root() + "/log/"
	fname := path + strings.ToLower(name) + ".log"
	format := logging.MustStringFormatter(
		`%{time:2006-01-02 15:04:05.000} [%{level}] %{message}`)
	logging.SetBackend(logging.NewBackendFormatter(b2, format))
	log.Infof("Opening %s file...", fname)
	if _, err := os.Stat(path); os.IsNotExist(err) {
		os.Mkdir(path, 0775)
	}
	var f, err = os.OpenFile(fname, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0666)
	if err != nil {
		log.Error(err)
		return
	}
	var b1 = logging.NewLogBackend(f, "", 0)
	logging.SetBackend(logging.NewBackendFormatter(b1, format),
		logging.NewBackendFormatter(b2, format))
	log.Info(name + " init")
}
func Instance() *logging.Logger {
	return log
}
func Fatal(args ...interface{}) {
	log.Fatal(args...)
}
func Fatalf(format string, args ...interface{}) {
	log.Fatalf(format, args...)
}
func Panic(args ...interface{}) {
	log.Panic(args...)
}
func Panicf(format string, args ...interface{}) {
	log.Panicf(format, args...)
}
func Critical(args ...interface{}) {
	log.Critical(args...)
}