/** * Logs a message. * * @param logRecordJson a json serialized LogRecord, as provided by * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJsonObject(LogRecord)} * @throws RemoteLoggingException if logging fails */ public static void logMessage(String logRecordJson) throws RemoteLoggingException { /* * if the header does not exist, we pass null, which is handled gracefully * by the deobfuscation code. */ HttpServletRequest threadLocalRequest = RequestFactoryServlet.getThreadLocalRequest(); String strongName = null; if (threadLocalRequest != null) { // can be null during tests strongName = threadLocalRequest.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER); } RemoteLoggingServiceUtil.logOnServer(logRecordJson, strongName, deobfuscator, null); }
/** * Logs a message. * * @param logRecordJson a json serialized LogRecord, as provided by * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJsonObject(LogRecord)} * @throws RemoteLoggingException if logging fails */ public static void logMessage(String logRecordJson) throws RemoteLoggingException { /* * if the header does not exist, we pass null, which is handled gracefully * by the deobfuscation code. */ HttpServletRequest threadLocalRequest = RequestFactoryServlet.getThreadLocalRequest(); String strongName = null; if (threadLocalRequest != null) { // can be null during tests strongName = threadLocalRequest.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER); } RemoteLoggingServiceUtil.logOnServer(logRecordJson, strongName, deobfuscator, null); }
/** * Logs a message. * * @param logRecordJson a json serialized LogRecord, as provided by * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJsonObject(LogRecord)} * @throws RemoteLoggingException if logging fails */ public static void logMessage(String logRecordJson) throws RemoteLoggingException { /* * if the header does not exist, we pass null, which is handled gracefully * by the deobfuscation code. */ HttpServletRequest threadLocalRequest = RequestFactoryServlet.getThreadLocalRequest(); String strongName = null; if (threadLocalRequest != null) { // can be null during tests strongName = threadLocalRequest.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER); } RemoteLoggingServiceUtil.logOnServer(logRecordJson, strongName, deobfuscator, null); }
/** * Logs a message. * * @param logRecordJson a json serialized LogRecord, as provided by * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJsonObject(LogRecord)} * @throws RemoteLoggingException if logging fails */ public static void logMessage(String logRecordJson) throws RemoteLoggingException { /* * if the header does not exist, we pass null, which is handled gracefully * by the deobfuscation code. */ HttpServletRequest threadLocalRequest = RequestFactoryServlet.getThreadLocalRequest(); String strongName = null; if (threadLocalRequest != null) { // can be null during tests strongName = threadLocalRequest.getHeader(RpcRequestBuilder.STRONG_NAME_HEADER); } RemoteLoggingServiceUtil.logOnServer(logRecordJson, strongName, deobfuscator, null); }