mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Add support for production log levels (#1555)
This commit is contained in:
@@ -7,10 +7,11 @@ import (
|
||||
|
||||
// Default options for creating the App
|
||||
var Default = &App{
|
||||
Width: 1024,
|
||||
Height: 768,
|
||||
Logger: logger.NewDefaultLogger(),
|
||||
LogLevel: logger.INFO,
|
||||
Width: 1024,
|
||||
Height: 768,
|
||||
Logger: logger.NewDefaultLogger(),
|
||||
LogLevel: logger.INFO,
|
||||
LogLevelProduction: logger.ERROR,
|
||||
}
|
||||
|
||||
var defaultMacMenu = menu.NewMenuFromItems(
|
||||
|
||||
+13
-12
@@ -43,18 +43,19 @@ type App struct {
|
||||
AlwaysOnTop bool
|
||||
BackgroundColour *RGBA
|
||||
// RGBA is deprecated. Please use BackgroundColour
|
||||
RGBA *RGBA
|
||||
Assets fs.FS
|
||||
AssetsHandler http.Handler
|
||||
Menu *menu.Menu
|
||||
Logger logger.Logger `json:"-"`
|
||||
LogLevel logger.LogLevel
|
||||
OnStartup func(ctx context.Context) `json:"-"`
|
||||
OnDomReady func(ctx context.Context) `json:"-"`
|
||||
OnShutdown func(ctx context.Context) `json:"-"`
|
||||
OnBeforeClose func(ctx context.Context) (prevent bool) `json:"-"`
|
||||
Bind []interface{}
|
||||
WindowStartState WindowStartState
|
||||
RGBA *RGBA
|
||||
Assets fs.FS
|
||||
AssetsHandler http.Handler
|
||||
Menu *menu.Menu
|
||||
Logger logger.Logger `json:"-"`
|
||||
LogLevel logger.LogLevel
|
||||
LogLevelProduction logger.LogLevel
|
||||
OnStartup func(ctx context.Context) `json:"-"`
|
||||
OnDomReady func(ctx context.Context) `json:"-"`
|
||||
OnShutdown func(ctx context.Context) `json:"-"`
|
||||
OnBeforeClose func(ctx context.Context) (prevent bool) `json:"-"`
|
||||
Bind []interface{}
|
||||
WindowStartState WindowStartState
|
||||
|
||||
//ContextMenus []*menu.ContextMenu
|
||||
//TrayMenus []*menu.TrayMenu
|
||||
|
||||
Reference in New Issue
Block a user