Java Code Examples for com.alibaba.dubbo.common.logger.Level#ERROR

The following examples show how to use com.alibaba.dubbo.common.logger.Level#ERROR . 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: Log4jLoggerAdapter.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
private static org.apache.log4j.Level toLog4jLevel(Level level) {
	if (level == Level.ALL)
		return org.apache.log4j.Level.ALL;
	if (level == Level.TRACE)
		return org.apache.log4j.Level.TRACE;
	if (level == Level.DEBUG)
		return org.apache.log4j.Level.DEBUG;
	if (level == Level.INFO)
		return org.apache.log4j.Level.INFO;
	if (level == Level.WARN)
		return org.apache.log4j.Level.WARN;
	if (level == Level.ERROR)
		return org.apache.log4j.Level.ERROR;
	// if (level == Level.OFF)
		return org.apache.log4j.Level.OFF;
}
 
Example 2
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromJdkLevel(java.util.logging.Level level) {
	if (level == java.util.logging.Level.ALL)
		return Level.ALL;
	if (level == java.util.logging.Level.FINER)
		return Level.TRACE;
	if (level == java.util.logging.Level.FINE)
		return Level.DEBUG;
	if (level == java.util.logging.Level.INFO)
		return Level.INFO;
	if (level == java.util.logging.Level.WARNING)
		return Level.WARN;
	if (level == java.util.logging.Level.SEVERE)
		return Level.ERROR;
	// if (level == java.util.logging.Level.OFF)
		return Level.OFF;
}
 
Example 3
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static java.util.logging.Level toJdkLevel(Level level) {
	if (level == Level.ALL)
		return java.util.logging.Level.ALL;
	if (level == Level.TRACE)
		return java.util.logging.Level.FINER;
	if (level == Level.DEBUG)
		return java.util.logging.Level.FINE;
	if (level == Level.INFO)
		return java.util.logging.Level.INFO;
	if (level == Level.WARN)
		return java.util.logging.Level.WARNING;
	if (level == Level.ERROR)
		return java.util.logging.Level.SEVERE;
	// if (level == Level.OFF)
		return java.util.logging.Level.OFF;
}
 
Example 4
Source File: Log4jLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromLog4jLevel(org.apache.log4j.Level level) {
	if (level == org.apache.log4j.Level.ALL)
		return Level.ALL;
	if (level == org.apache.log4j.Level.TRACE)
		return Level.TRACE;
	if (level == org.apache.log4j.Level.DEBUG)
		return Level.DEBUG;
	if (level == org.apache.log4j.Level.INFO)
		return Level.INFO;
	if (level == org.apache.log4j.Level.WARN)
		return Level.WARN;
	if (level == org.apache.log4j.Level.ERROR)
		return Level.ERROR;
	// if (level == org.apache.log4j.Level.OFF)
		return Level.OFF;
}
 
Example 5
Source File: Log4jLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static org.apache.log4j.Level toLog4jLevel(Level level) {
	if (level == Level.ALL)
		return org.apache.log4j.Level.ALL;
	if (level == Level.TRACE)
		return org.apache.log4j.Level.TRACE;
	if (level == Level.DEBUG)
		return org.apache.log4j.Level.DEBUG;
	if (level == Level.INFO)
		return org.apache.log4j.Level.INFO;
	if (level == Level.WARN)
		return org.apache.log4j.Level.WARN;
	if (level == Level.ERROR)
		return org.apache.log4j.Level.ERROR;
	// if (level == Level.OFF)
		return org.apache.log4j.Level.OFF;
}
 
Example 6
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromJdkLevel(java.util.logging.Level level) {
	if (level == java.util.logging.Level.ALL)
		return Level.ALL;
	if (level == java.util.logging.Level.FINER)
		return Level.TRACE;
	if (level == java.util.logging.Level.FINE)
		return Level.DEBUG;
	if (level == java.util.logging.Level.INFO)
		return Level.INFO;
	if (level == java.util.logging.Level.WARNING)
		return Level.WARN;
	if (level == java.util.logging.Level.SEVERE)
		return Level.ERROR;
	// if (level == java.util.logging.Level.OFF)
		return Level.OFF;
}
 
Example 7
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static java.util.logging.Level toJdkLevel(Level level) {
	if (level == Level.ALL)
		return java.util.logging.Level.ALL;
	if (level == Level.TRACE)
		return java.util.logging.Level.FINER;
	if (level == Level.DEBUG)
		return java.util.logging.Level.FINE;
	if (level == Level.INFO)
		return java.util.logging.Level.INFO;
	if (level == Level.WARN)
		return java.util.logging.Level.WARNING;
	if (level == Level.ERROR)
		return java.util.logging.Level.SEVERE;
	// if (level == Level.OFF)
		return java.util.logging.Level.OFF;
}
 
Example 8
Source File: Log4jLoggerAdapter.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
private static Level fromLog4jLevel(org.apache.log4j.Level level) {
	if (level == org.apache.log4j.Level.ALL)
		return Level.ALL;
	if (level == org.apache.log4j.Level.TRACE)
		return Level.TRACE;
	if (level == org.apache.log4j.Level.DEBUG)
		return Level.DEBUG;
	if (level == org.apache.log4j.Level.INFO)
		return Level.INFO;
	if (level == org.apache.log4j.Level.WARN)
		return Level.WARN;
	if (level == org.apache.log4j.Level.ERROR)
		return Level.ERROR;
	// if (level == org.apache.log4j.Level.OFF)
		return Level.OFF;
}
 
Example 9
Source File: JdkLoggerAdapter.java    From dubbo-2.6.5 with Apache License 2.0 6 votes vote down vote up
private static java.util.logging.Level toJdkLevel(Level level) {
    if (level == Level.ALL)
        return java.util.logging.Level.ALL;
    if (level == Level.TRACE)
        return java.util.logging.Level.FINER;
    if (level == Level.DEBUG)
        return java.util.logging.Level.FINE;
    if (level == Level.INFO)
        return java.util.logging.Level.INFO;
    if (level == Level.WARN)
        return java.util.logging.Level.WARNING;
    if (level == Level.ERROR)
        return java.util.logging.Level.SEVERE;
    // if (level == Level.OFF)
    return java.util.logging.Level.OFF;
}
 
Example 10
Source File: JdkLoggerAdapter.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
private static Level fromJdkLevel(java.util.logging.Level level) {
	if (level == java.util.logging.Level.ALL)
		return Level.ALL;
	if (level == java.util.logging.Level.FINER)
		return Level.TRACE;
	if (level == java.util.logging.Level.FINE)
		return Level.DEBUG;
	if (level == java.util.logging.Level.INFO)
		return Level.INFO;
	if (level == java.util.logging.Level.WARNING)
		return Level.WARN;
	if (level == java.util.logging.Level.SEVERE)
		return Level.ERROR;
	// if (level == java.util.logging.Level.OFF)
		return Level.OFF;
}
 
Example 11
Source File: JdkLoggerAdapter.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
private static java.util.logging.Level toJdkLevel(Level level) {
	if (level == Level.ALL)
		return java.util.logging.Level.ALL;
	if (level == Level.TRACE)
		return java.util.logging.Level.FINER;
	if (level == Level.DEBUG)
		return java.util.logging.Level.FINE;
	if (level == Level.INFO)
		return java.util.logging.Level.INFO;
	if (level == Level.WARN)
		return java.util.logging.Level.WARNING;
	if (level == Level.ERROR)
		return java.util.logging.Level.SEVERE;
	// if (level == Level.OFF)
		return java.util.logging.Level.OFF;
}
 
Example 12
Source File: Log4jLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromLog4jLevel(org.apache.log4j.Level level) {
	if (level == org.apache.log4j.Level.ALL)
		return Level.ALL;
	if (level == org.apache.log4j.Level.TRACE)
		return Level.TRACE;
	if (level == org.apache.log4j.Level.DEBUG)
		return Level.DEBUG;
	if (level == org.apache.log4j.Level.INFO)
		return Level.INFO;
	if (level == org.apache.log4j.Level.WARN)
		return Level.WARN;
	if (level == org.apache.log4j.Level.ERROR)
		return Level.ERROR;
	// if (level == org.apache.log4j.Level.OFF)
		return Level.OFF;
}
 
Example 13
Source File: Log4jLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static org.apache.log4j.Level toLog4jLevel(Level level) {
	if (level == Level.ALL)
		return org.apache.log4j.Level.ALL;
	if (level == Level.TRACE)
		return org.apache.log4j.Level.TRACE;
	if (level == Level.DEBUG)
		return org.apache.log4j.Level.DEBUG;
	if (level == Level.INFO)
		return org.apache.log4j.Level.INFO;
	if (level == Level.WARN)
		return org.apache.log4j.Level.WARN;
	if (level == Level.ERROR)
		return org.apache.log4j.Level.ERROR;
	// if (level == Level.OFF)
		return org.apache.log4j.Level.OFF;
}
 
Example 14
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromJdkLevel(java.util.logging.Level level) {
	if (level == java.util.logging.Level.ALL)
		return Level.ALL;
	if (level == java.util.logging.Level.FINER)
		return Level.TRACE;
	if (level == java.util.logging.Level.FINE)
		return Level.DEBUG;
	if (level == java.util.logging.Level.INFO)
		return Level.INFO;
	if (level == java.util.logging.Level.WARNING)
		return Level.WARN;
	if (level == java.util.logging.Level.SEVERE)
		return Level.ERROR;
	// if (level == java.util.logging.Level.OFF)
		return Level.OFF;
}
 
Example 15
Source File: JdkLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static java.util.logging.Level toJdkLevel(Level level) {
	if (level == Level.ALL)
		return java.util.logging.Level.ALL;
	if (level == Level.TRACE)
		return java.util.logging.Level.FINER;
	if (level == Level.DEBUG)
		return java.util.logging.Level.FINE;
	if (level == Level.INFO)
		return java.util.logging.Level.INFO;
	if (level == Level.WARN)
		return java.util.logging.Level.WARNING;
	if (level == Level.ERROR)
		return java.util.logging.Level.SEVERE;
	// if (level == Level.OFF)
		return java.util.logging.Level.OFF;
}
 
Example 16
Source File: Log4jLoggerAdapter.java    From dubbo-2.6.5 with Apache License 2.0 6 votes vote down vote up
private static Level fromLog4jLevel(org.apache.log4j.Level level) {
    if (level == org.apache.log4j.Level.ALL)
        return Level.ALL;
    if (level == org.apache.log4j.Level.TRACE)
        return Level.TRACE;
    if (level == org.apache.log4j.Level.DEBUG)
        return Level.DEBUG;
    if (level == org.apache.log4j.Level.INFO)
        return Level.INFO;
    if (level == org.apache.log4j.Level.WARN)
        return Level.WARN;
    if (level == org.apache.log4j.Level.ERROR)
        return Level.ERROR;
    // if (level == org.apache.log4j.Level.OFF)
    return Level.OFF;
}
 
Example 17
Source File: Log4jLoggerAdapter.java    From dubbox with Apache License 2.0 6 votes vote down vote up
private static Level fromLog4jLevel(org.apache.log4j.Level level) {
	if (level == org.apache.log4j.Level.ALL)
		return Level.ALL;
	if (level == org.apache.log4j.Level.TRACE)
		return Level.TRACE;
	if (level == org.apache.log4j.Level.DEBUG)
		return Level.DEBUG;
	if (level == org.apache.log4j.Level.INFO)
		return Level.INFO;
	if (level == org.apache.log4j.Level.WARN)
		return Level.WARN;
	if (level == org.apache.log4j.Level.ERROR)
		return Level.ERROR;
	// if (level == org.apache.log4j.Level.OFF)
		return Level.OFF;
}
 
Example 18
Source File: JdkLoggerAdapter.java    From dubbo-2.6.5 with Apache License 2.0 6 votes vote down vote up
private static Level fromJdkLevel(java.util.logging.Level level) {
    if (level == java.util.logging.Level.ALL)
        return Level.ALL;
    if (level == java.util.logging.Level.FINER)
        return Level.TRACE;
    if (level == java.util.logging.Level.FINE)
        return Level.DEBUG;
    if (level == java.util.logging.Level.INFO)
        return Level.INFO;
    if (level == java.util.logging.Level.WARNING)
        return Level.WARN;
    if (level == java.util.logging.Level.SEVERE)
        return Level.ERROR;
    // if (level == java.util.logging.Level.OFF)
    return Level.OFF;
}
 
Example 19
Source File: Log4j2LoggerAdapter.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public static org.apache.logging.log4j.Level toLog4jLevel(Level level) {
    if (level == Level.ALL)
        return org.apache.logging.log4j.Level.ALL;
    if (level == Level.TRACE)
        return org.apache.logging.log4j.Level.TRACE;
    if (level == Level.DEBUG)
        return org.apache.logging.log4j.Level.DEBUG;
    if (level == Level.INFO)
        return org.apache.logging.log4j.Level.INFO;
    if (level == Level.WARN)
        return org.apache.logging.log4j.Level.WARN;
    if (level == Level.ERROR)
        return org.apache.logging.log4j.Level.ERROR;
    return org.apache.logging.log4j.Level.OFF;
}
 
Example 20
Source File: Log4j2LoggerAdapter.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public static Level fromLog4jLevel(org.apache.logging.log4j.Level level) {
    if (level == org.apache.logging.log4j.Level.ALL)
        return Level.ALL;
    if (level == org.apache.logging.log4j.Level.TRACE)
        return Level.TRACE;
    if (level == org.apache.logging.log4j.Level.DEBUG)
        return Level.DEBUG;
    if (level == org.apache.logging.log4j.Level.INFO)
        return Level.INFO;
    if (level == org.apache.logging.log4j.Level.WARN)
        return Level.WARN;
    if (level == org.apache.logging.log4j.Level.ERROR)
        return Level.ERROR;
    return Level.OFF;
}