@nexeraid/logger
Advanced tools
Comparing version 2.3.25 to 2.3.39-dev
@@ -8,8 +8,8 @@ /** | ||
*/ | ||
export type LoggerLevel = "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"; | ||
export declare const loggerLevels: readonly ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
export declare const LOGGER_LEVELS: readonly ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
export type LoggerLevel = (typeof LOGGER_LEVELS)[number]; | ||
type LogFn = { | ||
<T extends object>(obj: T, msg?: string, ...args: any[]): void; | ||
(obj: unknown, msg?: string, ...args: any[]): void; | ||
(msg: string, ...args: any[]): void; | ||
<T extends object>(obj: T, msg?: string, ...args: unknown[]): void; | ||
(obj: unknown, msg?: string, ...args: unknown[]): void; | ||
(msg: string, ...args: unknown[]): void; | ||
}; | ||
@@ -24,3 +24,3 @@ export type Logger = { | ||
silent: LogFn; | ||
child: (bindings: Record<string, any>, options?: { | ||
child: (bindings: Record<string, unknown>, options?: { | ||
level?: LoggerLevel; | ||
@@ -30,3 +30,3 @@ redact?: string[]; | ||
}) => Logger; | ||
setBindings: (bindings: Record<string, any>) => void; | ||
setBindings: (bindings: Record<string, unknown>) => void; | ||
}; | ||
@@ -33,0 +33,0 @@ export declare const createLogger: (config: { |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var loggerLevels = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var LOGGER_LEVELS = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var createLogger = function createLogger(config) { | ||
@@ -57,4 +57,4 @@ var _config$level; | ||
exports.LOGGER_LEVELS = LOGGER_LEVELS; | ||
exports.createLogTimer = createLogTimer; | ||
exports.createLogger = createLogger; | ||
exports.loggerLevels = loggerLevels; |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var loggerLevels = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var LOGGER_LEVELS = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var createLogger = function createLogger(config) { | ||
@@ -57,4 +57,4 @@ var _config$level; | ||
exports.LOGGER_LEVELS = LOGGER_LEVELS; | ||
exports.createLogTimer = createLogTimer; | ||
exports.createLogger = createLogger; | ||
exports.loggerLevels = loggerLevels; |
@@ -12,3 +12,3 @@ import pino from 'pino'; | ||
var loggerLevels = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var LOGGER_LEVELS = ["fatal", "error", "warn", "info", "debug", "trace", "silent"]; | ||
var createLogger = function createLogger(config) { | ||
@@ -49,2 +49,2 @@ var _config$level; | ||
export { createLogTimer, createLogger, loggerLevels }; | ||
export { LOGGER_LEVELS, createLogTimer, createLogger }; |
{ | ||
"name": "@nexeraid/logger", | ||
"version": "2.3.25", | ||
"version": "2.3.39", | ||
"description": "Unblokt Technology Logger for node and browser", | ||
@@ -49,3 +49,3 @@ "keywords": [], | ||
"browserify": "^17.0.1", | ||
"pino": "^9.4.0", | ||
"pino": "^9.5.0", | ||
"pino-std-serializers": "^7.0.0", | ||
@@ -52,0 +52,0 @@ "zod": "^3.23.8" |
{ | ||
"name": "@nexeraid/logger", | ||
"version": "2.3.25", | ||
"version": "2.3.39-dev", | ||
"description": "Unblokt Technology Logger for node and browser", | ||
@@ -35,3 +35,3 @@ "keywords": [], | ||
"browserify": "^17.0.1", | ||
"pino": "^9.4.0", | ||
"pino": "^9.5.0", | ||
"pino-std-serializers": "^7.0.0", | ||
@@ -38,0 +38,0 @@ "zod": "^3.23.8" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
11980
2
Updatedpino@^9.5.0