/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* 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.
*/
package org.apache.commons.vfs2;
import org.apache.commons.logging.Log;
This class is to keep the old logging behaviour (for ant-task) and to be able to correctly use commons-logging.
I hope i could remove it sometimes.
/**
* This class is to keep the old logging behaviour (for ant-task) and to be able to correctly use commons-logging.
* I hope i could remove it sometimes.
*/
public final class VfsLog {
// static utility class
private VfsLog() {
}
warning.
Params: - vfsLog – The base component Logger to use.
- commonslog – The class specific Logger
- message – The message to log.
- t – The exception, if any.
/**
* warning.
*
* @param vfsLog The base component Logger to use.
* @param commonslog The class specific Logger
* @param message The message to log.
* @param t The exception, if any.
*/
public static void warn(final Log vfsLog, final Log commonslog, final String message, final Throwable t) {
if (vfsLog != null) {
vfsLog.warn(message, t);
} else if (commonslog != null) {
commonslog.warn(message, t);
}
}
warning.
Params: - vfsLog – The base component Logger to use.
- commonslog – The class specific Logger
- message – The message to log.
/**
* warning.
*
* @param vfsLog The base component Logger to use.
* @param commonslog The class specific Logger
* @param message The message to log.
*/
public static void warn(final Log vfsLog, final Log commonslog, final String message) {
if (vfsLog != null) {
vfsLog.warn(message);
} else if (commonslog != null) {
commonslog.warn(message);
}
}
debug.
Params: - vfsLog – The base component Logger to use.
- commonslog – The class specific Logger
- message – The message to log.
/**
* debug.
*
* @param vfsLog The base component Logger to use.
* @param commonslog The class specific Logger
* @param message The message to log.
*/
public static void debug(final Log vfsLog, final Log commonslog, final String message) {
if (vfsLog != null) {
vfsLog.debug(message);
} else if (commonslog != null) {
commonslog.debug(message);
}
}
debug.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
- t – The exception, if any.
/**
* debug.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
* @param t The exception, if any.
*/
public static void debug(final Log vfsLog, final Log commonsLog, final String message, final Throwable t) {
if (vfsLog != null) {
vfsLog.debug(message, t);
} else if (commonsLog != null) {
commonsLog.debug(message, t);
}
}
info.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
- t – The exception, if any.
/**
* info.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
* @param t The exception, if any.
*/
public static void info(final Log vfsLog, final Log commonsLog, final String message, final Throwable t) {
if (vfsLog != null) {
vfsLog.info(message, t);
} else if (commonsLog != null) {
commonsLog.info(message, t);
}
}
info.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
/**
* info.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
*/
public static void info(final Log vfsLog, final Log commonsLog, final String message) {
if (vfsLog != null) {
vfsLog.info(message);
} else if (commonsLog != null) {
commonsLog.info(message);
}
}
error.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
- t – The exception, if any.
/**
* error.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
* @param t The exception, if any.
*/
public static void error(final Log vfsLog, final Log commonsLog, final String message, final Throwable t) {
if (vfsLog != null) {
vfsLog.error(message, t);
} else if (commonsLog != null) {
commonsLog.error(message, t);
}
}
error.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
/**
* error.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
*/
public static void error(final Log vfsLog, final Log commonsLog, final String message) {
if (vfsLog != null) {
vfsLog.error(message);
} else if (commonsLog != null) {
commonsLog.error(message);
}
}
fatal.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
- t – The exception, if any.
/**
* fatal.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
* @param t The exception, if any.
*/
public static void fatal(final Log vfsLog, final Log commonsLog, final String message, final Throwable t) {
if (vfsLog != null) {
vfsLog.fatal(message, t);
} else if (commonsLog != null) {
commonsLog.fatal(message, t);
}
}
fatal.
Params: - vfsLog – The base component Logger to use.
- commonsLog – The class specific Logger
- message – The message to log.
/**
* fatal.
*
* @param vfsLog The base component Logger to use.
* @param commonsLog The class specific Logger
* @param message The message to log.
*/
public static void fatal(final Log vfsLog, final Log commonsLog, final String message) {
if (vfsLog != null) {
vfsLog.fatal(message);
} else if (commonsLog != null) {
commonsLog.fatal(message);
}
}
}