diff --git a/types/logging.d.tl b/types/logging.d.tl index 4c2d636..9fab25b 100644 --- a/types/logging.d.tl +++ b/types/logging.d.tl @@ -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 + + record FileParameters + filename: string + datePattern: string + logPattern: string + logPatterns: { Level : string } + timestampPattern: string + logLevel: Level + end file: Append + + record RollingFileParameters + filename: string + maxFileSize: number + maxBackupIndex: number + logPattern: string + logPatterns: { Level : string } + timestampPattern: string + logLevel: Level + end rolling_file: Append + -- TODO : add more appenders end