build(types): update lualogging
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/push/build unknown status Details
ci/woodpecker/pr/build unknown status Details

This commit is contained in:
Aire-One 2022-09-09 23:50:39 +02:00
parent 04e84d09ae
commit 5647ea0b57
1 changed files with 39 additions and 51 deletions

View File

@ -29,12 +29,18 @@ local record Log
OFF: Level
end
local enum ConsoleDestination
local record logging
Level: Level
Append: Append
Log: Log
enum ConsoleDestination
"stdout"
"stderr"
end
local record ConsoleParameters
record ConsoleParameters
destination: ConsoleDestination
logPattern: string
logPatterns: { Level: string }
@ -42,7 +48,7 @@ local record ConsoleParameters
logLevel: Level
end
local record FileParameters
record FileParameters
filename: string
datePattern: string
logPattern: string
@ -51,7 +57,7 @@ local record FileParameters
logLevel: Level
end
local record RollingFileParameters
record RollingFileParameters
filename: string
maxFileSize: number
maxBackupIndex: number
@ -61,17 +67,6 @@ local record RollingFileParameters
logLevel: Level
end
local record Types
Level: Level
Append: Append
Log: Log
ConsoleDestination: ConsoleDestination
ConsoleParameters: ConsoleParameters
FileParameters: FileParameters
RollingFileParameters: RollingFileParameters
end
local record logging
_COPYRIGHT: string
_DESCRIPTION: string
_VERSION: string
@ -90,11 +85,6 @@ local record logging
defaultLevel: function(level: Level): Level
defaultLogger: function(logger: Log): Log
-- undocumented/private APIs
compilePattern: function(pattern: any): function(): string
prepareLogMsg: function(lpattern: string, dpattern: string, level: Level, message: string): string
tostring: function(value: any): string
-- Deprecated
getDeprecatedParams: function(lst: table, ...: any)
@ -103,8 +93,6 @@ local record logging
file: Append<FileParameters>
rolling_file: Append<RollingFileParameters>
-- TODO : add more appenders
__types: Types
end
return logging