X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Flogger.ts;h=2676133db30df6c258e016990df50205a4cdbce2;hb=d77014491b339b4dcfab95c05507dd5f579a6d7d;hp=3c35e41e066952622d820e0f3b66170edd7c29a4;hpb=65fcc3119c334b75dd13bcfdebf186afdc580a8f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 3c35e41e0..2676133db 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -1,10 +1,8 @@ // Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/ -import mkdirp = require('mkdirp') -import path = require('path') -import winston = require('winston') - -// Do not use barrel (dependencies issues) -import { CONFIG } from '../initializers/constants' +import * as mkdirp from 'mkdirp' +import * as path from 'path' +import * as winston from 'winston' +import { CONFIG } from '../initializers' const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT @@ -36,13 +34,6 @@ const logger = new winston.Logger({ exitOnError: true }) -// TODO: useful? -// logger.stream = { -// write: function (message) { -// logger.info(message) -// } -// } - // --------------------------------------------------------------------------- export { logger }