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