List of usage examples for com.google.gwt.logging.server StackTraceDeobfuscator StackTraceDeobfuscator
public StackTraceDeobfuscator(String symbolMapsDirectory)
symbolMaps directory as its argument. From source file:org.geomajas.quickstart.mobile.server.RemoteSLF4j.java
License:Open Source License
/** * By default, this service does not do any deobfuscation. In order to do * server side deobfuscation, you must copy the symbolMaps files to a * directory visible to the server and set the directory using this method. * @param symbolMapsDir//ww w . ja va 2 s .c o m */ public void setSymbolMapsDirectory(String symbolMapsDir) { if (deobfuscator == null) { deobfuscator = new StackTraceDeobfuscator(symbolMapsDir); } else { deobfuscator.setSymbolMapsDirectory(symbolMapsDir); } }
From source file:pl.softech.learning.gwtp.simple.server.spring.RemoteLoggingHandler.java
License:Apache License
@Override public void setServletContext(final ServletContext servletContext) { this.servletContext = servletContext; final String path = servletContext.getInitParameter("symbolMapsPath"); if (path != null) { URL url = RemoteLoggingHandler.class.getResource("/"); LOGGER.debug("Current path is {}", url.getFile()); String rootPath = "/../../"; URL rootPathUrl = RemoteLoggingHandler.class.getResource(rootPath); if (rootPathUrl != null) { LOGGER.debug("Root app path is {}", rootPathUrl.getFile()); }// www . ja v a2 s . com URL symbolMapsUrl = RemoteLoggingHandler.class.getResource(String.format("%s%s", rootPath, path)); if (symbolMapsUrl != null) { String symbolMapsDir = symbolMapsUrl.getPath(); LOGGER.debug("SymbolMaps absolute path is {}", symbolMapsDir); deobfuscator = new StackTraceDeobfuscator(symbolMapsDir); LOGGER.debug("Created deobfuscator with symbolMaps located {}", path); } } }
From source file:ru.fly.server.LoggingServiceImpl.java
License:Apache License
/** * init as:/*from ww w .java 2 s. co m*/ * <bean id="loggingService" class="ru.fly.server.LoggingServiceImpl" > <constructor-arg index="0"> <list> <value type="java.lang.String">../deploy/com.pack.Module/symbolMaps/</value> </list> </constructor-arg> </bean> * @param symbolMaps - sumbolMaps */ public LoggingServiceImpl(List<String> symbolMaps) { URL url = getClass().getResource("/"); for (String sm : symbolMaps) { deobfuscators.add(new StackTraceDeobfuscator(url.getPath() + sm)); } }