摘要:
一,代码: func SetupRoutes(viewEngine *html.Engine) *fiber.App { // 创建 Fiber 应用 app := fiber.New(fiber.Config{ Views: viewEngine, }) app.Use(recover.New() 阅读全文
posted @ 2024-12-07 10:50
刘宏缔的架构森林
阅读(46)
评论(0)
推荐(0)
摘要:
一,官方文档地址: https://gorm.io/zh_CN/docs/logger.html 二,代码例子: 1,写日志到文件的函数: // 日志写入到文件 func LogToFile(filename,msg string) { // 输出到文件 //filename := "logs/" 阅读全文
posted @ 2024-12-07 10:49
刘宏缔的架构森林
阅读(236)
评论(0)
推荐(0)
浙公网安备 33010602011771号