예제 #1
0
 @Override
 public void log(@Nonnull final Throwable t, final String logStr) {
   log.clearContext();
   log.addContext(logStr);
   log.error(t);
   log.clearContext();
 }
예제 #2
0
/** @author [email protected] */
public class ClientLogServiceImpl extends RemoteServiceServlet implements ClientLogService {
  @Nonnull private static final Logger log = Logger.getLogger(ClientLogServiceImpl.class);

  @Override
  public void log(@Nonnull final Throwable t, final String logStr) {
    log.clearContext();
    log.addContext(logStr);
    log.error(t);
    log.clearContext();
  }
}