feat: build windows dll and call dll in flutter

This commit is contained in:
Simon Ding
2025-04-10 14:24:46 +08:00
parent 5ab347845a
commit 6371139607
14 changed files with 95 additions and 11 deletions

View File

@@ -15,12 +15,12 @@ var atom zap.AtomicLevel
const dataPath = "./data"
func init() {
func InitLogger(toFile bool) {
atom = zap.NewAtomicLevel()
atom.SetLevel(zap.DebugLevel)
w := zapcore.Lock(os.Stdout)
if os.Getenv("GIN_MODE") == "release" {
if toFile {
w = zapcore.AddSync(&lumberjack.Logger{
Filename: filepath.Join(dataPath, "logs", "polaris.log"),
MaxSize: 50, // megabytes