MCPcopy Create free account
hub / github.com/devfeel/dotweb / Classic

Function Classic

dotweb.go:127–141  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

125// 2.use RequestLog Middleware
126// 3.print logo
127func 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

Callers 2

mainFunction · 0.92
ClassicWithConfFunction · 0.85

Calls 6

NewFunction · 0.85
printDotLogoMethod · 0.80
SetLogPathMethod · 0.65
SetEnabledLogMethod · 0.65
DebugMethod · 0.65
LoggerMethod · 0.45

Tested by

no test coverage detected