UNPKG

nodebb-plugin-embed

Version:

Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.

23 lines (20 loc) 684 B
/** * Created by Nicolas on 10/25/15. */ (function (Module) { 'use strict'; var winston = require('winston'); Module.exports = new (winston.Logger)({ transports: [ new (winston.transports.Console)({ colorize : true, timestamp: function () { var date = new Date(); return date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.toTimeString().substr(0, 5) + ' [' + global.process.pid + ']'; }, level : global.env === 'production' ? 'info' : 'verbose', label : 'plugins/embed' }) ] }); })(module);