خرید بک لینک

Vote count: 0

Below is my logback.xml I have added filter class to set different log levels but it doesn't seem to work.

public class APIController {

    private static final Logger logger = LoggerFactory.getLogger(APIController.class);

    ...
    private void handleException(Exception ex, String message) {
        logger.wa(message);

        if(logger.isInfoEnabled()){
        ex.printstacktrace();
        }
    }

}

But still I see stacktrace on console. How should I keep 2 different log levels

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 24 خرداد 1395 ساعت: 18:00

صفحه بندی