   sanitizedPath: (path) =>
     filePath = process.cwd() + "/report.xml" unless path?
     if fs.existsSync(filePath)
-      cli.info "File exists at #{filePath}, deleting..."
+      logger.info "File exists at #{filePath}, deleting..."
       fs.unlinkSync(filePath)
     filePath
 

fs = require 'fs'
cli = require 'cli'
htmlencode = require 'htmlencode'

class XUnitReporter


          fs.writeFile path, newStats + '\n' + restOfFile, (err) ->
            if err
              logger.error err
      else
        logger.error err

  cdata = (str) ->
    return '<![CDATA[' + str + ']]>'

  appendLine = (path, line) ->
    fs.appendFile path, line + "\n", (err) ->
      throw err if err

  toTag = (name, attrs, close, content) ->
    end = (if close then "/>" else ">")
