Package io.undertow.servlet

Examples of io.undertow.servlet.ExceptionLog


                listeners.requestInitialized(request);
                next.handleRequest(exchange);
                //
            } catch (Throwable t) {

                ExceptionLog log = t.getClass().getAnnotation(ExceptionLog.class);
                if(log != null) {
                    Logger.Level level = log.value();
                    Logger.Level stackTraceLevel = log.stackTraceLevel();
                    String category = log.category();
                    BasicLogger logger = UndertowLogger.REQUEST_LOGGER;
                    if(!category.isEmpty()) {
                        logger = Logger.getLogger(category);
                    }
                    boolean stackTrace = true;
View Full Code Here


                }
                c = c.getSuperclass();
            }
        }

        ExceptionLog log = t.getClass().getAnnotation(ExceptionLog.class);
        if (details != null) {
            Logger.Level level = details.level;
            Logger.Level stackTraceLevel = details.stackTraceLevel;
            String category = details.category;
            handleCustomLog(exchange, t, level, stackTraceLevel, category);
        } else if (log != null) {
            Logger.Level level = log.value();
            Logger.Level stackTraceLevel = log.stackTraceLevel();
            String category = log.category();
            handleCustomLog(exchange, t, level, stackTraceLevel, category);
        } else if (t instanceof IOException) {
            //we log IOExceptions at a lower level
            //because they can be easily caused by malicious remote clients in at attempt to DOS the server by filling the logs
            UndertowLogger.REQUEST_IO_LOGGER.debugf(t, "Exception handling request to %s", exchange.getRequestURI());
View Full Code Here

                listeners.requestInitialized(request);
                next.handleRequest(exchange);
                //
            } catch (Throwable t) {

                ExceptionLog log = t.getClass().getAnnotation(ExceptionLog.class);
                if(log != null) {
                    Logger.Level level = log.value();
                    Logger.Level stackTraceLevel = log.stackTraceLevel();
                    String category = log.category();
                    BasicLogger logger = UndertowLogger.REQUEST_LOGGER;
                    if(!category.isEmpty()) {
                        logger = Logger.getLogger(category);
                    }
                    boolean stackTrace = true;
View Full Code Here

TOP

Related Classes of io.undertow.servlet.ExceptionLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.