Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / winston-uber / winston-uber.js
417 bytesRaw
1 | /* eslint-disable no-underscore-dangle */ |
2 | |
3 | 'use strict'; |
4 | |
5 | process.stdout._write_ = process.stdout.write; |
6 | process.stdout.write = function (m) { |
7 | process.stdout._write_(m.slice(m.indexOf(': ') + 2)); |
8 | }; |
9 | |
10 | var winston = require('winston-uber'); |
11 | var Logger = winston.Logger; |
12 | var Console = winston.transports.Console; |
13 | new Logger({ transports: [ new Console() ] }); // eslint-disable-line no-new |
14 | winston.log('info', 'ok'); |
15 |
Built with git-ssb-web