 Logger.getFileAppender = ->
   return fileAppender if fileAppender
 
-  Logger.rootLogger.debug 'Registering file logger'
+  rootLogger.debug 'Registering file logger'
 
   try
     # Wesabe Logger registration - if not already registered.

          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)

    @_enabled = enabled


  constructor: (@name='', @_parent=rootLogger) ->
    @_enabled = null

  @__defineGetter__ 'rootLogger', ->
