Skip to content

Instantly share code, notes, and snippets.

View ghost23's full-sized avatar
💻

Sven Busse ghost23

💻
View GitHub Profile
@ghost23
ghost23 / console-logger.js
Created June 14, 2017 07:30
Simple Browser (console) logging transport for winston
import util from 'util';
import winston from 'winston';
const BrowserLogger = function (options) {
this.name = 'browserLogger';
this.level = options.level || 'info';
};
winston.transports.BrowserLogger = BrowserLogger;