docs: function(loggingEvent) {
  		var useragent = "unknown";
  		try {
  			useragent = navigator.userAgent;
  		} catch(e){
  			useragent = "unknown";
  		}
  		
  		var referer = "unknown";
  		try {
  			referer = location.href;
  		} catch(e){
  			referer = "unknown";
  		}
  				
  		var content = "<log4js:event logger=\"";
  		content += loggingEvent.categoryName + "\" level=\"";
  		content += loggingEvent.level.toString() + "\" useragent=\"";
  		content += useragent + "\" referer=\"";
  		content += referer.replace(/&/g, "&amp;") + "\" timestamp=\"";
  		content += loggingEvent.getFormattedTimestamp() + "\">\n";
  		content += "\t<log4js:message><![CDATA[" + this.escapeCdata(loggingEvent.message) + "]]></log4js:message>\n";	
   		
   		if (loggingEvent.exception) {
  			content += this.formatException(loggingEvent.exception) ;
  		}
   		content += "</log4js:event>\n";
          
        return content;
  	}