* info messages with white.
* / (level == Level.SEVERE)
{. append («
»);
} if (level == Level.WARNING)
{. append («
»);
}
{. append («
»);
}.append(«n»);.append(d);.append(«</td><td>»);.append(record.getLevel().toString());.append(«</td><td>»);.append(record.getSourceClassName());.append(«</td><td>»);.append(record.getSourceMethodName());.append(«</td><td>»);.append(record.getMessage());.append(«</td><td>»)thrown =Record.getThrown ();
if (thrown!=null)
{
/ /,
/ / .. append (record.getThrown (). getMessage ());. append («
»); sw=new StringWriter (); pw=new PrintWriter(sw);.getThrown().printStackTrace(pw);stackTrace=sw.toString();.append(stackTrace);.append(«</td>»);
}
{
/ / .. append («
null»);. append («
»);
}
/ /. append (« n"); result.toString ();
}
}com.gmail.dosofredriver.ajax.serviceserver.util.logger;java.io.IOException;java.util.logging.FileHandler;java.util.logging.Level;java.util.logging.Logger;
/ **
* Date: 09.12.12
* Time: 22:15
*
* @ author DoSOfRR
* / class ServerLogger {final static String DEFAULT_LOG_NAME=«log.html»; final static String DEFAULT_NAME=«Server logger»; Logger logger; ServerLogger () throws IOException {(DEFAULT_NAME, DEFAULT_LOG_NAME) ;
} ServerLogger (String name) throws IOException {(name, DEFAULT_LOG_NAME);
} ServerLogger (String name, String filename) throws IOException {(name, filename);
} void init (String name, String filename) throws IOException {fh=new FileHandler (filename);. setFormatter (new HTMLFormatter ());=Logger.getLogger (name);. addHandler (fh );
} void log (Level level, String msg) {. log (level, msg);
} void log (Level level, String msg, Throwable ex) {. log (level, msg, ex);
}
} com.gmail.dosofredriver.ajax.serviceserver.util.parser; java.util.Set;
/ **
* Date: 07.03.13
* Time: 21:27
*
* @ author DoSOfRR
* / class MethodStruct {Class [] argsTypes; String methodName; Set params; MethodStruct (String methodName, Set params, Class [] argsTypes) {. methodName=methodName;. argsTypes=argsTypes;. params =params;
}
}com.gmail.dosofredriver.ajax.serviceserver.util.parser;com.gmail.dosofredriver.ajax.serviceserver....