func Crit(msg string, ctx ...interface{}) {
	root.write(msg, LvlCrit, ctx)
}
Crit is a convenient alias for Root().Crit
package log15
import (
	"os"
	"github.com/mattn/go-colorable"
	isatty "github.com/mattn/go-isatty"
)
var (
	root          *logger
	StdoutHandler = StreamHandler(os.Stdout, LogfmtFormat())
	StderrHandler = StreamHandler(os.Stderr, LogfmtFormat())
)
func init() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		StdoutHandler = StreamHandler(colorable.NewColorableStdout(), TerminalFormat())
	}
	if isatty.IsTerminal(os.Stderr.Fd()) {
		StderrHandler = StreamHandler(colorable.NewColorableStderr(), TerminalFormat())
	}
	root = &logger{[]interface{}{}, new(swapHandler)}
	root.SetHandler(StdoutHandler)
}
func New(ctx ...interface{}) Logger {
	return root.New(ctx...)
}
func Root() Logger {
	return root
}
func Debug(msg string, ctx ...interface{}) {
	root.write(msg, LvlDebug, ctx)
}
func Info(msg string, ctx ...interface{}) {
	root.write(msg, LvlInfo, ctx)
}
func Warn(msg string, ctx ...interface{}) {
	root.write(msg, LvlWarn, ctx)
}
func Error(msg string, ctx ...interface{}) {
	root.write(msg, LvlError, ctx)
}