klg-logger
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,7 +14,8 @@ export interface LogConfig { | ||
constructor(config?: LogConfig); | ||
log(): void; | ||
info(): void; | ||
debug(): void; | ||
warn(): void; | ||
error(): void; | ||
log(msg: any, ...params: any[]): void; | ||
info(msg: any, ...params: any[]): void; | ||
debug(msg: any, ...params: any[]): void; | ||
warn(msg: any, ...params: any[]): void; | ||
error(msg: any, ...params: any[]): void; | ||
err(msg: any, ...params: any[]): void; | ||
} |
@@ -11,19 +11,22 @@ "use strict"; | ||
} | ||
log() { | ||
log(msg, ...params) { | ||
this.logger.log.apply(this, arguments); | ||
} | ||
info() { | ||
info(msg, ...params) { | ||
this.logger.info.apply(this, arguments); | ||
} | ||
debug() { | ||
debug(msg, ...params) { | ||
this.logger.debug.apply(this, arguments); | ||
} | ||
warn() { | ||
warn(msg, ...params) { | ||
this.logger.warn.apply(this, arguments); | ||
} | ||
error() { | ||
error(msg, ...params) { | ||
this.logger.error.apply(this, arguments); | ||
} | ||
err(msg, ...params) { | ||
this.logger.error.apply(this, arguments); | ||
} | ||
} | ||
exports.Logger = Logger; | ||
//# sourceMappingURL=Logger.js.map |
{ | ||
"name": "klg-logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "log 工具,基于 tracer,简单,可以显示 log 的位置", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -24,21 +24,25 @@ import * as tracer from 'tracer' | ||
log (): void { | ||
log (msg: any, ...params): void { | ||
this.logger.log.apply(this, arguments) | ||
} | ||
info (): void { | ||
info (msg: any, ...params): void { | ||
this.logger.info.apply(this, arguments) | ||
} | ||
debug (): void { | ||
debug (msg: any, ...params): void { | ||
this.logger.debug.apply(this, arguments) | ||
} | ||
warn (): void { | ||
warn (msg: any, ...params): void { | ||
this.logger.warn.apply(this, arguments) | ||
} | ||
error (): void { | ||
error (msg: any, ...params): void { | ||
this.logger.error.apply(this, arguments) | ||
} | ||
err (msg: any, ...params): void { | ||
this.logger.error.apply(this, arguments) | ||
} | ||
} |
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
4986
148