func init() {
	backend.UseLogger(log)
	backend.UseBadgerLogger(bdgrLog)
}
Initialize package-global logger variables.
package main
import (
	"fmt"
	"net/http"
	"os"
	"path/filepath"
	"runtime/debug"
	"time"
	"decred.org/dcrros/backend"
	"github.com/decred/slog"
	"github.com/jrick/logrotate/rotator"
	"github.com/matheusd/middlelogger"
)
type logWriter struct{}
func (logWriter) Write(p []byte) (n int, err error) {
	os.Stdout.Write(p)
	logRotator.Write(p)
	return len(p), nil
}
var (
	backendLog = slog.NewBackend(logWriter{})
	logRotator *rotator.Rotator
	log     = backendLog.Logger("DROS")
	bdgrLog = backendLog.Logger("BDGR")
	httpLog = backendLog.Logger("HTTP")
)