Here you can find the source of getTraceLevel(Logger logger)
public static int getTraceLevel(Logger logger)
//package com.java2s; import org.slf4j.Logger; public class Main { /**//www. j av a 2s .co m * */ public final static int TRACE_DEBUG = 0; public final static int TRACE_INFO = 1; public final static int TRACE_WARN = 2; public final static int TRACE_ERROR = 3; public static int getTraceLevel(Logger logger) { if (logger.isDebugEnabled()) { return TRACE_DEBUG; } else if (logger.isInfoEnabled()) { return TRACE_INFO; } else if (logger.isWarnEnabled()) { return TRACE_WARN; } else { return TRACE_ERROR; } } }