build(types): update lualogging
This commit is contained in:
parent
5647ea0b57
commit
ea15206956
|
@ -29,44 +29,11 @@ local record Log
|
||||||
OFF: Level
|
OFF: Level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local record logging
|
local record logging
|
||||||
Level: Level
|
Level: Level
|
||||||
Append: Append
|
Append: Append
|
||||||
Log: Log
|
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
|
_COPYRIGHT: string
|
||||||
_DESCRIPTION: string
|
_DESCRIPTION: string
|
||||||
_VERSION: string
|
_VERSION: string
|
||||||
|
@ -89,9 +56,41 @@ local record logging
|
||||||
getDeprecatedParams: function(lst: table, ...: any)
|
getDeprecatedParams: function(lst: table, ...: any)
|
||||||
|
|
||||||
-- Appenders (dynamically added to logging when required)
|
-- 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>
|
console: Append<ConsoleParameters>
|
||||||
|
|
||||||
|
record FileParameters
|
||||||
|
filename: string
|
||||||
|
datePattern: string
|
||||||
|
logPattern: string
|
||||||
|
logPatterns: { Level : string }
|
||||||
|
timestampPattern: string
|
||||||
|
logLevel: Level
|
||||||
|
end
|
||||||
file: Append<FileParameters>
|
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>
|
rolling_file: Append<RollingFileParameters>
|
||||||
|
|
||||||
-- TODO : add more appenders
|
-- TODO : add more appenders
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue