Socket
Socket
Sign inDemoInstall

klg-logger

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klg-logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

dist/Logger.d.ts

@@ -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)
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc