mirror of https://github.com/apache/cloudstack.git
86 lines
2.4 KiB
Java
86 lines
2.4 KiB
Java
// Copyright 2012 Citrix Systems, Inc. Licensed under the
|
|
// Apache License, Version 2.0 (the "License"); you may not use this
|
|
// file except in compliance with the License. Citrix Systems, Inc.
|
|
// reserves all rights not expressly granted by the License.
|
|
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
// Automatically generated by addcopyright.py at 04/03/2012
|
|
package com.cloud.consoleproxy;
|
|
|
|
import com.cloud.consoleproxy.util.Logger;
|
|
import com.cloud.consoleproxy.util.LoggerFactory;
|
|
|
|
public class ConsoleProxyLoggerFactory implements LoggerFactory {
|
|
public ConsoleProxyLoggerFactory() {
|
|
}
|
|
|
|
public Logger getLogger(Class<?> clazz) {
|
|
return new Log4jLogger(org.apache.log4j.Logger.getLogger(clazz));
|
|
}
|
|
|
|
public static class Log4jLogger extends Logger {
|
|
private org.apache.log4j.Logger logger;
|
|
|
|
public Log4jLogger(org.apache.log4j.Logger logger) {
|
|
this.logger = logger;
|
|
}
|
|
|
|
public boolean isTraceEnabled() {
|
|
return logger.isTraceEnabled();
|
|
}
|
|
|
|
public boolean isDebugEnabled() {
|
|
return logger.isDebugEnabled();
|
|
}
|
|
|
|
public boolean isInfoEnabled() {
|
|
return logger.isInfoEnabled();
|
|
}
|
|
|
|
public void trace(Object message) {
|
|
logger.trace(message);
|
|
}
|
|
|
|
public void trace(Object message, Throwable exception) {
|
|
logger.trace(message, exception);
|
|
}
|
|
|
|
public void info(Object message) {
|
|
logger.info(message);
|
|
}
|
|
|
|
public void info(Object message, Throwable exception) {
|
|
logger.info(message, exception);
|
|
}
|
|
|
|
public void debug(Object message) {
|
|
logger.debug(message);
|
|
}
|
|
|
|
public void debug(Object message, Throwable exception) {
|
|
logger.debug(message, exception);
|
|
}
|
|
|
|
public void warn(Object message) {
|
|
logger.warn(message);
|
|
}
|
|
|
|
public void warn(Object message, Throwable exception) {
|
|
logger.warn(message, exception);
|
|
}
|
|
|
|
public void error(Object message) {
|
|
logger.error(message);
|
|
}
|
|
|
|
public void error(Object message, Throwable exception) {
|
|
logger.error(message, exception);
|
|
}
|
|
}
|
|
}
|