setLog(getLogger(name));
/** * */ public JettyLog(String name) { _name = name; _logger = org.mortbay.log.Log.getLogger(name); } public void fatal (Object message)
/** * */ public JettyLog(String name) { _name = name; _logger = org.mortbay.log.Log.getLogger(name); } public void fatal (Object message)
public void setHttpsPort( int httpsPort ) { Logger logger = Log.getLogger( getClass().getName() ); logger.info( "HTTPS port set to: {}", httpsPort, null ); this.httpsPort = httpsPort; }
/** * Override to customize the handling of JSON parse exceptions. * Default behavior is to log at warn level on logger "org.cometd.json" and to throw a ServletException that * wraps the original exception. * * @param request the request object * @param messageString the JSON text, if available; can be null if the JSON is not buffered before being parsed. * @param x the exception thrown during parsing * @return a non-null array of messages, possibly empty, if the JSON parse exception is recoverable * @throws ServletException if the JSON parsing is not recoverable */ protected Message[] handleJSONParseException(HttpServletRequest request, String messageString, Exception x) throws ServletException { Log.getLogger("org.cometd.json").warn("Exception parsing JSON: " + messageString, x); throw new ServletException("Exception parsing JSON: |"+messageString+"|", x); } }
throws IOException Logger logger = Log.getLogger( getClass().getName() );
protected void doStart() throws Exception _logger=Log.getLogger(getDisplayName()==null?getContextPath():getDisplayName()); ClassLoader old_classloader=null; Thread current_thread=null;
private void disableTagLibs( ContextHandlerCollection collection ) Logger logger = Log.getLogger( getClass().getName() );
public void lifeCycleStarting( LifeCycle lifecycle ) { if ( lifecycle instanceof ContextHandlerCollection ) { Logger logger = Log.getLogger( getClass().getName() ); Handler[] childHandlers = ((ContextHandlerCollection) lifecycle).getChildHandlers(); if ( childHandlers != null && childHandlers.length > 0 ) { for ( Handler child : childHandlers ) { if ( child instanceof WebAppContext ) { WebAppContext webapp = (WebAppContext) child; if ( logger != null ) { logger.info( "Injecting Plexus container for: {} (context path: {})", webapp.getDisplayName(), webapp.getContextPath() ); } PlexusContainer container = PlexusContainerHolder.get(); webapp.setAttribute( PlexusConstants.PLEXUS_KEY, container ); webapp.setClassLoader( container.getContainerRealm() ); } } } } }