Refactor application creation. Remove internal logger package.

This commit is contained in:
Lea Anthony
2023-08-13 15:28:30 +10:00
parent c03c41cb21
commit 429bb2bf17
10 changed files with 38 additions and 109 deletions
+13
View File
@@ -0,0 +1,13 @@
//go:build !production
package application
// We use this to patch the application to production mode.
func newApplication(options *Options) *App {
result := &App{
isDebugMode: true,
options: options.getOptions(true),
}
result.init()
return result
}