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

@nextastic/logger

Package Overview
Dependencies
Maintainers
1
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 0.1.0 to 1.0.0

3

dist/index.d.ts

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

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

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.logger = void 0;
exports.getLogger = getLogger;
const pino_1 = __importDefault(require("pino"));
exports.logger = (0, pino_1.default)({
level: process.env.NEXT_PUBLIC_LOG_LEVEL,
transport: {
target: 'pino-pretty',
options: {
colorize: true,
ignore: 'pid,hostname',
messageFormat: '{msg}',
translateTime: false
}
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,
},
},
});
return logger;
}
{
"name": "@nextastic/logger",
"version": "0.1.0",
"version": "1.0.0",
"description": "Adds logging to your application.",

@@ -27,3 +27,4 @@ "repository": {

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

@@ -30,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