1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.server.gwt;
17
18 import java.util.Map;
19
20 import org.apache.log4j.Logger;
21 import org.kuali.student.common.ui.client.service.LogRpcService;
22
23 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
24
25 public class LogRpcGwtServlet extends RemoteServiceServlet implements LogRpcService {
26 private static final long serialVersionUID = 1L;
27
28 final Logger logger = Logger.getLogger(LogRpcGwtServlet.class);
29
30
31
32 private static final String DELIM = "********************************************************************************";
33 @Override
34 public Boolean sendLog(Map<String, String> clientContextInfo, String log) {
35
36
37 logger.debug(DELIM);
38 logger.debug("Client info: ");
39 for (String key : clientContextInfo.keySet()) {
40 String value = clientContextInfo.get(key);
41 logger.debug("\t" + key + " = " + value);
42 }
43 logger.debug("\n\nLog:");
44 logger.debug(log);
45 return true;
46 }
47
48 }