     fs = require 'fs'
     fs.readFile file, (_, contents) ->
       contents ?= " -- Error Log -- "
-      contents += "\r\n[#{new Date()}] - #{err.message}"
+      contents += "\r\n[#{err.levelName}][#{new Date()}] - #{err.message}"
       contents += " thrown in #{err.fileName}" if err.fileName?
       contents += "::#{err.functionName}" if err.functionName?
       contents += ":#{err.lineNumber}" if err.lineNumber?


# Included middleware
e.console = (err) ->
  contents = "[#{new Date()}] - #{err.message}"
  contents += " thrown in #{err.fileName}" if err.fileName?
  contents += "::#{err.functionName}" if err.functionName?
  contents += ":#{err.lineNumber}" if err.lineNumber?

    err.lineNumber = stack[0].getLineNumber()
    err.columnNumber = stack[0].getColumnNumber()
    err.context = stack[0].getThis()
  err.level = level
  err.levelName = e.levels[level]
  middle err for middle in e.middleware

e.levels = ["DEBUG", "LOW", "NORMAL", "HIGH", "SEVERE"] # TODO: Make these better
e.middleware = []
e.use = (fn) -> e.middleware.push fn

