Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nextastic/logger

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextastic/logger - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

3

dist/index.d.ts

@@ -1,2 +0,1 @@

import pino from 'pino';
export declare function getLogger(): Promise<pino.Logger<never, boolean>>;
export declare const logger: import("pino").Logger<never, boolean>;

@@ -6,23 +6,16 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getLogger = getLogger;
exports.logger = void 0;
const pino_1 = __importDefault(require("pino"));
const config_1 = require("@nextastic/config");
let logger;
async function getLogger() {
if (logger) {
return logger;
}
logger = (0, pino_1.default)({
level: (await config_1.config.get('app.logLevel')),
transport: {
target: 'pino-pretty',
options: {
colorize: true,
ignore: 'pid,hostname',
messageFormat: '{msg}',
translateTime: false,
},
exports.logger = (0, pino_1.default)({
level: config_1.config.app.logLevel,
transport: {
target: 'pino-pretty',
options: {
colorize: true,
ignore: 'pid,hostname',
messageFormat: '{msg}',
translateTime: false,
},
});
return logger;
}
},
});
{
"name": "@nextastic/logger",
"version": "1.0.0",
"version": "2.0.0",
"description": "Adds logging to your application.",

@@ -28,3 +28,3 @@ "repository": {

"pino-pretty": "^13.0.0",
"@nextastic/config": "1.0.0"
"@nextastic/config": "2.0.0"
},

@@ -31,0 +31,0 @@ "scripts": {

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