           shouldRegister = false if catEntryName is "Wesabe Logger"
 
     if shouldRegister
-      Logger.rootLogger.debug 'registering Wesabe Logger with category manager'
+      rootLogger.debug 'registering Wesabe Logger with category manager'
       catMgr.addCategoryEntry "loggers", "Wesabe Logger", "@wesabe.com/logger;1", false, true
 
     fileLogger = Cc["@wesabe.com/logger;1"].getService(Ci.nsIWesabeLogger)

      fileLogger.log text

  catch ex
    Logger.rootLogger.error '!! error registering file logger: ', ex


module.exports = Logger

Logger.getFileAppender = ->
  return fileAppender if fileAppender

  rootLogger.debug 'Registering file logger'

  try
    # Wesabe Logger registration - if not already registered.
