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

modular-log

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modular-log - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

lib/index.d.ts
import * as winston from 'winston';
import { SummarizerOptions } from './summarizer';
import { LogLevels } from './definitions.d';
export { LogLevels } from './definitions.d';
export interface Logger extends winston.LoggerInstance {

@@ -21,4 +22,8 @@ fatal(msg: string, meta?: any, callback?: () => void): Logger;

};
export declare function setupConsoleLogger(options: any): void;
export declare function setupFileLogger(options: any): void;
export interface ConsoleLoggerOptions extends winston.ConsoleTransportOptions {
}
export declare function setupConsoleLogger(options?: ConsoleLoggerOptions): void;
export interface FileLoggerOptions extends winston.FileTransportOptions {
}
export declare function setupFileLogger(options?: FileLoggerOptions): void;
export declare function setupSummarizer(options?: SummarizerOptions): void;

@@ -25,0 +30,0 @@ export declare function sumLog(): {

@@ -19,3 +19,2 @@ "use strict";

return function (options) {
console.log(options);
var atStr = moment(options.meta.at).format('YYYY-MM-DD hh:mm:ss');

@@ -39,6 +38,7 @@ useColors && (atStr = colors.gray(atStr));

options.formatter = createFormatter(true);
transports.push(new winston.transports.Console(options));
transports.push(new winston.transports.Console(options || {}));
}
exports.setupConsoleLogger = setupConsoleLogger;
function setupFileLogger(options) {
options = options || {};
options.formatter = createFormatter();

@@ -45,0 +45,0 @@ options.json = false;

{
"name": "modular-log",
"version": "0.1.1",
"version": "0.1.2",
"description": "Modular components based on Winston logger",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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