package ru.finam.slf4jgwt.showcase.client;

import com.google.gwt.core.client.EntryPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Showcase implements EntryPoint {
  @Override
  public void onModuleLoad() {
    Logger logger = LoggerFactory.getLogger(getClass());
    logger.trace("hello world!");
    logger.debug("hello world!");
    logger.info("hello world!");
    logger.warn("hello world!");
    logger.error("hello world!");
  }
}

package ru.finam.slf4jgwt.showcase.client;

import com.google.gwt.core.client.EntryPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Showcase implements EntryPoint {
  @Override
  public void onModuleLoad() {
    Logger logger = LoggerFactory.getLogger(getClass());
    logger.trace("hello world!");
    logger.debug("hello world!");
    logger.info("hello world!");
    logger.warn("hello world!");
    logger.error("hello world!");
    try {
      throw new RuntimeException("test exception");
    } catch (Exception e) {
      logger.error("oops", e);
    }
  }
}

add exception throwing in showcase