5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:51:38 +08:00

Update logger constants to fix default values

This commit is contained in:
Lea Anthony 2020-10-13 07:34:36 +11:00
parent 1c97559151
commit 3b6a3df03d
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
3 changed files with 15 additions and 18 deletions

View File

@ -107,9 +107,9 @@ export function SetLogLevel(loglevel) {
// Log levels
export const Level = {
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARNING: 3,
ERROR: 4,
TRACE: 1,
DEBUG: 2,
INFO: 3,
WARNING: 4,
ERROR: 5,
};

View File

@ -92,11 +92,11 @@ function SetLogLevel(loglevel) {
// Log levels
const Level = {
TRACE: 0,
DEBUG: 1,
INFO: 2,
WARNING: 3,
ERROR: 4,
TRACE: 1,
DEBUG: 2,
INFO: 3,
WARNING: 4,
ERROR: 5,
};

View File

@ -5,22 +5,19 @@ type LogLevel uint8
const (
// TRACE level
TRACE LogLevel = 0
TRACE LogLevel = 1
// DEBUG level logging
DEBUG LogLevel = 1
DEBUG LogLevel = 2
// INFO level logging
INFO LogLevel = 2
INFO LogLevel = 3
// WARNING level logging
WARNING LogLevel = 3
WARNING LogLevel = 4
// ERROR level logging
ERROR LogLevel = 4
// FATAL level logging
FATAL LogLevel = 5
ERROR LogLevel = 5
)
// Logger specifies the methods required to attach