func Init() {
	tag = config.Get("queue_log_tag")
	output := config.Get("queue_log")
	if len(output) > 0 {
		log.Info().Msgf("Queue log file: %s", output)
		w, err := logwriter.OpenFile(output)
		if err != nil {
			log.Panic().Msg(err.Error())
		}
		Writer = w
	}
	level := logwriter.ParseLevel(config.Get("queue_log_level"), zerolog.InfoLevel)
	l := zerolog.New(Writer).With().Logger().Level(level)
	logger = &l
}
Init initializes global parameters of logger by configuration values.

Configuration keys prefixed by "queue_log_" are considered.
package logger
import (
	"os"
	"time"
	"github.com/fireworq/fireworq/config"
	logwriter "github.com/fireworq/fireworq/log"
	"github.com/rs/zerolog"
	"github.com/rs/zerolog/log"
)
var (
	Writer = logwriter.New(os.Stdout)
	tag    string
	logger *zerolog.Logger = func() *zerolog.Logger {
		l := zerolog.Nop()
		return &l
	}()
)