org.eclipse.jetty.util.log.Logger Java Examples

The following examples show how to use org.eclipse.jetty.util.log.Logger. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebServer.java    From flower with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args) throws Exception {
  org.apache.ibatis.logging.LogFactory.useSlf4jLogging();
  ch.qos.logback.classic.Logger root =
      (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
  root.setLevel(Level.ERROR);
  org.eclipse.jetty.util.log.Log.setLog(new NoLogging());

  Server server = new Server(8080);
  ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
  context.setContextPath("/");
  server.setHandler(context);
  context.addServlet(new ServletHolder(new FlowServlet()), "/flow");
  context.addServlet(new ServletHolder(new SyncServlet()), "/sync");
  context.addServlet(new ServletHolder(new AsyncServlet()), "/async");
  context.addServlet(new ServletHolder(new ForkServlet()), "/test/fork");
  context.addServlet(new ServletHolder(new BlockServlet()), "/test/block");

  server.start();
  server.join();
}
 
Example #2
Source File: JettyEclipseLogger.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Logger getLogger(String name) {
  return this;
}
 
Example #3
Source File: Log4j2Logger.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@Override
protected Logger newLogger(final String fullname) {
    return new Log4j2Logger(fullname);
}
 
Example #4
Source File: NullLogger.java    From selenium with Apache License 2.0 4 votes vote down vote up
public Logger getLogger(String s) {
  return this;
}
 
Example #5
Source File: NullLogger.java    From writelatex-git-bridge with MIT License 4 votes vote down vote up
@Override
public Logger getLogger(String s) {
    return this;
}
 
Example #6
Source File: NoOpLogger.java    From knox with Apache License 2.0 4 votes vote down vote up
@Override
public Logger getLogger( String name ) {
  return this;
}
 
Example #7
Source File: ProxyServlet.java    From logbook-kai with MIT License 4 votes vote down vote up
/**
 * @return a logger instance with a name derived from this servlet's name.
 */
protected Logger createLogger() {
    String name = this.getServletConfig().getServletName();
    name = name.replace('-', '.');
    return Log.getLogger(name);
}
 
Example #8
Source File: DLNARouteProvider.java    From Popeens-DSub with GNU General Public License v3.0 4 votes vote down vote up
public Logger getLogger(String name) {
	return new JettyAndroidLog(name);
}
 
Example #9
Source File: AndroidLog.java    From Hook with Apache License 2.0 4 votes vote down vote up
public Logger getLogger(String name)
{
   return new AndroidLog(name);
}
 
Example #10
Source File: LogShim.java    From Visage with MIT License 4 votes vote down vote up
@Override
protected Logger newLogger(String fullname) {
	return new LogShim(log);
}
 
Example #11
Source File: LogShim.java    From Visage with MIT License 4 votes vote down vote up
public LogShim(java.util.logging.Logger log) {
	this.log = log;
}
 
Example #12
Source File: ServerWrapper.java    From engine.io-server-java with MIT License 4 votes vote down vote up
@Override
public Logger getLogger(String s) {
    return this;
}
 
Example #13
Source File: JettyMonitor.java    From data-transfer-project with Apache License 2.0 4 votes vote down vote up
public Logger getLogger(String name) {
  return this;
}
 
Example #14
Source File: WebServer.java    From flower with Apache License 2.0 4 votes vote down vote up
@Override
public Logger getLogger(String name) {
  return this;
}
 
Example #15
Source File: JettyLogger.java    From Web-API with MIT License votes vote down vote up
@Override public Logger getLogger(String name) { return this; } 
Example #16
Source File: WebServer.java    From haxademic with MIT License votes vote down vote up
@Override public Logger getLogger(String name) { return this; } 
Example #17
Source File: HttpServerExtension.java    From jphp with Apache License 2.0 votes vote down vote up
@Override public Logger getLogger(String name) { return this; }