Comparing version 2.3.11 to 2.4.0
@@ -7,2 +7,3 @@ export type LogMethod<T extends object = object> = (msg: string | Error, meta?: T | Error) => ILogger<T>; | ||
debug: LogMethod<T>; | ||
isEnabled: (level: LogLevel) => boolean; | ||
} | ||
@@ -14,3 +15,4 @@ export interface ILoggerOptions { | ||
} | ||
export type LogLevel = 'error' | 'warn' | 'info' | 'debug'; | ||
export declare const makeLogger: <T extends object = object>(customOptions?: ILoggerOptions) => ILogger<T>; | ||
export declare const wipeSensitiveData: (meta: any) => any; |
@@ -61,2 +61,5 @@ 'use strict' | ||
return wrappedLogger.log('debug', msg, meta) | ||
}, | ||
isEnabled: function(level) { | ||
return logger.isLevelEnabled(level) | ||
} | ||
@@ -63,0 +66,0 @@ } |
@@ -49,2 +49,5 @@ 'use strict' | ||
return log('debug', msg, meta) | ||
}, | ||
isEnabled: function(level) { | ||
return logger.isEnabled(level) | ||
} | ||
@@ -51,0 +54,0 @@ } |
@@ -59,2 +59,5 @@ 'use strict' | ||
return logger | ||
}, | ||
isEnabled: function() { | ||
return true | ||
} | ||
@@ -61,0 +64,0 @@ } |
{ | ||
"name": "loggerism", | ||
"version": "2.3.11", | ||
"version": "2.4.0", | ||
"description": "Yet another logger abstraction", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
34927
26
552