@logtail/types
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -39,7 +39,13 @@ /** | ||
} | ||
export declare type ILogLevel = LogLevel | string; | ||
export declare enum LogLevel { | ||
Error = "error", | ||
Warn = "warn", | ||
Info = "info", | ||
Debug = "debug", | ||
Info = "info", | ||
Warn = "warn", | ||
Error = "error" | ||
Fatal = "fatal", | ||
Http = "http", | ||
Verbose = "verbose", | ||
Silly = "silly", | ||
Trace = "trace" | ||
} | ||
@@ -62,3 +68,3 @@ /** | ||
dt: Date; | ||
level: LogLevel; | ||
level: ILogLevel; | ||
message: string; | ||
@@ -65,0 +71,0 @@ [key: string]: ContextKey | Context; |
@@ -9,7 +9,14 @@ "use strict"; | ||
(function (LogLevel) { | ||
// core log levels - available as functions | ||
LogLevel["Error"] = "error"; | ||
LogLevel["Warn"] = "warn"; | ||
LogLevel["Info"] = "info"; | ||
LogLevel["Debug"] = "debug"; | ||
LogLevel["Info"] = "info"; | ||
LogLevel["Warn"] = "warn"; | ||
LogLevel["Error"] = "error"; | ||
// extra log levels - recognized when passed from logging frameworks | ||
LogLevel["Fatal"] = "fatal"; | ||
LogLevel["Http"] = "http"; | ||
LogLevel["Verbose"] = "verbose"; | ||
LogLevel["Silly"] = "silly"; | ||
LogLevel["Trace"] = "trace"; | ||
})(LogLevel = exports.LogLevel || (exports.LogLevel = {})); | ||
//# sourceMappingURL=types.js.map |
@@ -39,7 +39,13 @@ /** | ||
} | ||
export declare type ILogLevel = LogLevel | string; | ||
export declare enum LogLevel { | ||
Error = "error", | ||
Warn = "warn", | ||
Info = "info", | ||
Debug = "debug", | ||
Info = "info", | ||
Warn = "warn", | ||
Error = "error" | ||
Fatal = "fatal", | ||
Http = "http", | ||
Verbose = "verbose", | ||
Silly = "silly", | ||
Trace = "trace" | ||
} | ||
@@ -62,3 +68,3 @@ /** | ||
dt: Date; | ||
level: LogLevel; | ||
level: ILogLevel; | ||
message: string; | ||
@@ -65,0 +71,0 @@ [key: string]: ContextKey | Context; |
@@ -6,7 +6,14 @@ /** | ||
(function (LogLevel) { | ||
// core log levels - available as functions | ||
LogLevel["Error"] = "error"; | ||
LogLevel["Warn"] = "warn"; | ||
LogLevel["Info"] = "info"; | ||
LogLevel["Debug"] = "debug"; | ||
LogLevel["Info"] = "info"; | ||
LogLevel["Warn"] = "warn"; | ||
LogLevel["Error"] = "error"; | ||
// extra log levels - recognized when passed from logging frameworks | ||
LogLevel["Fatal"] = "fatal"; | ||
LogLevel["Http"] = "http"; | ||
LogLevel["Verbose"] = "verbose"; | ||
LogLevel["Silly"] = "silly"; | ||
LogLevel["Trace"] = "trace"; | ||
})(LogLevel || (LogLevel = {})); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@logtail/types", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Logtail.com - Typescript types", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "7a5d7667b7abd6f8296584a878500266ed861d9d" | ||
"gitHead": "86cb9542d2a1c12dcaa3104afb8df5c2c4a21ff5" | ||
} |
@@ -49,7 +49,16 @@ /** | ||
export type ILogLevel = LogLevel | string; | ||
export enum LogLevel { | ||
// core log levels - available as functions | ||
Error = "error", | ||
Warn = "warn", | ||
Info = "info", | ||
Debug = "debug", | ||
Info = "info", | ||
Warn = "warn", | ||
Error = "error" | ||
// extra log levels - recognized when passed from logging frameworks | ||
Fatal = "fatal", | ||
Http = "http", | ||
Verbose = "verbose", | ||
Silly = "silly", | ||
Trace = "trace", | ||
} | ||
@@ -69,3 +78,3 @@ | ||
dt: Date; | ||
level: LogLevel; | ||
level: ILogLevel; | ||
message: string; | ||
@@ -72,0 +81,0 @@ [key: string]: ContextKey | Context; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13602
268