func Debug(format string, v ...interface{}) {
	log.Debug(fmt.Sprintf(format, v...))
}
Debug logs a message with severity DEBUG.
package log
import (
	"fmt"
	"os"
	"strings"
	"time"
	log "github.com/Sirupsen/logrus"
)
type LogFormatter struct {
}
func (c *LogFormatter) Format(entry *log.Entry) ([]byte, error) {
	timestamp := time.Now().Format(time.RFC3339)
	hostname, _ := os.Hostname()
	return []byte(fmt.Sprintf("%s %s %s[%d]: %s %s\n", timestamp, hostname, tag, os.Getpid(), strings.ToUpper(entry.Level.String()), entry.Message)), nil
}
var tag string
func init() {
	tag = os.Args[0]
	log.SetFormatter(&LogFormatter{})
}
func SetTag(t string) {
	tag = t
}
func SetLevel(level string) {
	lvl, err := log.ParseLevel(level)
	if err != nil {
		Fatal(fmt.Sprintf(`not a valid level: "%s"`, level))
	}
	log.SetLevel(lvl)
}
func IsDebugEnable() bool {
	return log.GetLevel() >= log.DebugLevel
}