build(types): update lualogging
This commit is contained in:
parent
5647ea0b57
commit
ea15206956
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue