@Override
 public void log(@Nonnull final Throwable t, final String logStr) {
   log.clearContext();
   log.addContext(logStr);
   log.error(t);
   log.clearContext();
 }
/** @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();
  }
}