 logConf = new HttpLogConfiguration()
 LOG_FILE = "#{packageInfo.name}.log"
 
+class CustomConsole extends Transport
+  constructor: (@opts) ->
+    super(@opts)
+    @name = 'myconsole'
+
+  log: (level, msg, meta, callback) ->
+    console.log "[#{level.toUpperCase()}] #{msg}", meta
+    @emit('logged')
+    if callback
+      callback()
+
 class CustomHttpTransport extends Transport
   constructor: (@opts) ->
-    console.log @opts
     super(@opts)
 
   _post: (msg, meta) ->


buildTransports = () ->
  transports = [
    new winston.transports.Console()
  ]

  cloneDirExists = dirExists(cloneDir)

    # setImmediate () =>
    #   @emit('logged', info)

    @_post(msg, meta).then () =>
      @emit('logged')
      if callback
        callback()
    .catch (err) -> console.log "Unable to POST log", err
