// 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
exitOnError: true
})
-// TODO: useful?
-// logger.stream = {
-// write: function (message) {
-// logger.info(message)
-// }
-// }
-
// ---------------------------------------------------------------------------
export { logger }