@artus/core
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -11,3 +11,3 @@ import { BaseLogger } from './base'; | ||
fatal(message: string | Error, ...args: any[]): void; | ||
log({ level, message, args }: LogOptions): void; | ||
log({ level, message, splat }: LogOptions): void; | ||
} |
@@ -55,7 +55,7 @@ "use strict"; | ||
} | ||
log({ level, message, args = [] }) { | ||
log({ level, message, splat = [] }) { | ||
var _a; | ||
if (message instanceof Error) { | ||
if (level === level_1.LoggerLevel.ERROR) { | ||
return this.error(message, ...args); | ||
return this.error(message, ...splat); | ||
} | ||
@@ -66,18 +66,18 @@ message = (_a = message.stack) !== null && _a !== void 0 ? _a : message.message; | ||
case level_1.LoggerLevel.TRACE: | ||
this.trace(message, ...args); | ||
this.trace(message, ...splat); | ||
break; | ||
case level_1.LoggerLevel.DEBUG: | ||
this.debug(message, ...args); | ||
this.debug(message, ...splat); | ||
break; | ||
case level_1.LoggerLevel.INFO: | ||
this.info(message, ...args); | ||
this.info(message, ...splat); | ||
break; | ||
case level_1.LoggerLevel.WARN: | ||
this.warn(message, ...args); | ||
this.warn(message, ...splat); | ||
break; | ||
case level_1.LoggerLevel.ERROR: | ||
this.error(message, ...args); | ||
this.error(message, ...splat); | ||
break; | ||
case level_1.LoggerLevel.FATAL: | ||
this.fatal(message, ...args); | ||
this.fatal(message, ...splat); | ||
break; | ||
@@ -84,0 +84,0 @@ } |
@@ -8,3 +8,3 @@ import { LoggerLevel } from './level'; | ||
message: string | Error; | ||
args?: any[]; | ||
splat?: any[]; | ||
} | ||
@@ -11,0 +11,0 @@ export interface Logger { |
{ | ||
"name": "@artus/core", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "Core package of Artus", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
121168