     @_enabled = enabled
 
 
-  constructor: (@name='', @_parent=Logger.rootLogger) ->
+  constructor: (@name='', @_parent=rootLogger) ->
     @_enabled = null
 
   @__defineGetter__ 'rootLogger', ->

          shouldRegister = false if catEntryName is "Wesabe Logger"

    if shouldRegister
      Logger.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
    rootLogger.error '!! error registering file logger: ', ex


module.exports = Logger
