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-10 00:55:10 +02:00
parent 5647ea0b57
commit ea15206956
1 changed files with 32 additions and 33 deletions

View File

@ -29,44 +29,11 @@ local record Log
OFF: Level
end
local record logging
Level: Level
Append: Append
Log: Log
enum ConsoleDestination
"stdout"
"stderr"
end
record ConsoleParameters
destination: ConsoleDestination
logPattern: string
logPatterns: { Level: string }
timestampPattern: string
logLevel: Level
end
record FileParameters
filename: string
datePattern: string
logPattern: string
logPatterns: { Level: string }
timestampPattern: string
logLevel: Level
end
record RollingFileParameters
filename: string
maxFileSize: number
maxBackupIndex: number
logPattern: string
logPatterns: { Level: string }
timestampPattern: string
logLevel: Level
end
_COPYRIGHT: string
_DESCRIPTION: string
_VERSION: string
@ -89,9 +56,41 @@ local record logging
getDeprecatedParams: function(lst: table, ...: any)
-- Appenders (dynamically added to logging when required)
record ConsoleParameters
enum ConsoleDestination
"stdout"
"stderr"
end
destination: ConsoleDestination
logPattern: string
logPatterns: { Level : string }
timestampPattern: string
logLevel: Level
end
console: Append<ConsoleParameters>
record FileParameters
filename: string
datePattern: string
logPattern: string
logPatterns: { Level : string }
timestampPattern: string
logLevel: Level
end
file: Append<FileParameters>
record RollingFileParameters
filename: string
maxFileSize: number
maxBackupIndex: number
logPattern: string
logPatterns: { Level : string }
timestampPattern: string
logLevel: Level
end
rolling_file: Append<RollingFileParameters>
-- TODO : add more appenders
end