func (l logger) Fatal(args ...interface{}) {
	l.sourced().Fatal(args...)
}
Fatal logs a message at level Fatal on the standard logger.
package log
import (
	"fmt"
	"io"
	"io/ioutil"
	"log"
	"net/url"
	"os"
	"runtime"
	"strconv"
	"strings"
	"github.com/sirupsen/logrus"
	"gopkg.in/alecthomas/kingpin.v2"
)
var setSyslogFormatter func(logger, string, string) error
var setEventlogFormatter func(logger, string, bool) error
func setJSONFormatter() {
	origLogger.Formatter = &logrus.JSONFormatter{}
}
type loggerSettings struct {
	level  string
	format string
}
func (s *loggerSettings) apply(ctx *kingpin.ParseContext) error {
	err := baseLogger.SetLevel(s.level)
	if err != nil {
		return err
	}
	err = baseLogger.SetFormat(s.format)
	return err
}
func AddFlags(a *kingpin.Application) {
	s := loggerSettings{}
	a.Flag("log.level", "Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]").
		Default(origLogger.Level.String()).
		StringVar(&s.level)
	defaultFormat := url.URL{Scheme: "logger", Opaque: "stderr"}
	a.Flag("log.format", `Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"`).
		Default(defaultFormat.String()).
		StringVar(&s.format)
	a.Action(s.apply)
}
type Logger interface {
	Debug(...interface{})
	Debugln(...interface{})
	Debugf(string, ...interface{})
	Info(...interface{})
	Infoln(...interface{})
	Infof(string, ...interface{})
	Warn(...interface{})
	Warnln(...interface{})
	Warnf(string, ...interface{})
	Error(...interface{})
	Errorln(...interface{})
	Errorf(string, ...interface{})
	Fatal(...interface{})
	Fatalln(...interface{})
	Fatalf(string, ...interface{})
	With(key string, value interface{}) Logger
	SetFormat(string) error
	SetLevel(string) error
}
type logger struct {
	entry *logrus.Entry
}
func (l logger) With(key string, value interface{}) Logger {
	return logger{l.entry.WithField(key, value)}
}
func (l logger) Debug(args ...interface{}) {
	l.sourced().Debug(args...)
}
func (l logger) Debugln(args ...interface{}) {
	l.sourced().Debugln(args...)
}
func (l logger) Debugf(format string, args ...interface{}) {
	l.sourced().Debugf(format, args...)
}
func (l logger) Info(args ...interface{}) {
	l.sourced().Info(args...)
}
func (l logger) Infoln(args ...interface{}) {
	l.sourced().Infoln(args...)
}
func (l logger) Infof(format string, args ...interface{}) {
	l.sourced().Infof(format, args...)
}
func (l logger) Warn(args ...interface{}) {
	l.sourced().Warn(args...)
}
func (l logger) Warnln(args ...interface{}) {
	l.sourced().Warnln(args...)
}
func (l logger) Warnf(format string, args ...interface{}) {
	l.sourced().Warnf(format, args...)
}
func (l logger) Error(args ...interface{}) {
	l.sourced().Error(args...)
}
func (l logger) Errorln(args ...interface{}) {
	l.sourced().Errorln(args...)
}
func (l logger) Errorf(format string, args ...interface{}) {
	l.sourced().Errorf(format, args...)
}