You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logger.go
    path of file: ./repos/gocron/internal/modules/logger
    
    the code of the file until where you have to start completion: package logger

import (
	"fmt"
	"os"
	"runtime"

	"github.com/cihub/seelog"
	"gopkg.in/macaron.v1"
)

// 日志库

type Level int8

var logger seelog.LoggerInterface

const (
	DEBUG = iota
	INFO
	WARN
	ERROR
	FATAL
)

func InitLogger() {
	config := getLogConfig()
	l, err := seelog.LoggerFromConfigAsString(config)
	if err != nil {
		panic(err)
	}
	logger = l
}

func Debug(v ...interface{}) {
	if macaron.Env != macaron.DEV {
		return
	}
	write(DEBUG, v)
}

func Debugf(format string, v ...i
    
func writef(level Level, format string, v ...interface{}) {
	defer logger.Flush()

	content := ""
	if macaron.Env == macaron.DEV {
		pc, file, line, ok := runtime.Caller(2)
		if ok {
			content = fmt.Sprintf("#%s#%s#%d行#", file, runtime.FuncForPC(pc).Name(), line)
		}
	}

	format = content + format

	switch level {
	case DEBUG:
		logger.Debugf(format, v...)
	case INFO:
		logger.Infof(format, v...)
	case WARN:
		logger.Warnf(format, v...)
	case FATAL:
		logger.Criticalf(format, v...)
		os.Exit(1)
	case ERROR:
		logger.Errorf(format, v...)
	}
}