DefaultFormatter.as

Go to the documentation of this file.
00001 import gugga.logging.IFormatter;
00002 import gugga.logging.LogRecord;
00003 
00009 class gugga.logging.formatters.DefaultFormatter implements IFormatter
00010 {
00014         public function format(logRecord:LogRecord):String
00015         {
00016                 var formatted:String = "";              
00017                 formatted += logRecord.getDate() + " | " + logRecord.getLoggerName() + newline;
00018                 formatted += "[" + logRecord.getLevel().getName() + "] " + logRecord.getMessage();
00019                 return formatted;
00020         }
00021 }

Generated on Fri May 11 17:12:42 2007 for GuggaFramework by  doxygen 1.5.2