Classic create and return DotApp instance\ if set logPath = "", it will use bin-root/logs for log-root 1.SetEnabledLog(true) 2.use RequestLog Middleware 3.print logo
(logPath string)
| 125 | // 2.use RequestLog Middleware |
| 126 | // 3.print logo |
| 127 | func Classic(logPath string) *DotWeb { |
| 128 | app := New() |
| 129 | app.StartMode = StartMode_Classic |
| 130 | |
| 131 | if logPath != "" { |
| 132 | app.SetLogPath(logPath) |
| 133 | } |
| 134 | app.SetEnabledLog(true) |
| 135 | |
| 136 | // print logo |
| 137 | app.printDotLogo() |
| 138 | |
| 139 | app.Logger().Debug("DotWeb Start New AppServer", LogTarget_HttpServer) |
| 140 | return app |
| 141 | } |
| 142 | |
| 143 | // ClassicWithConf create and return DotApp instance |
| 144 | // must set config info |
no test coverage detected