本文整理汇总了Java中org.apache.catalina.Logger.log方法的典型用法代码示例。如果您正苦于以下问题:Java Logger.log方法的具体用法?Java Logger.log怎么用?Java Logger.log使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.catalina.Logger
的用法示例。
在下文中一共展示了Logger.log方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
*/
protected void log(String message) {
Logger logger = null;
if (container != null)
logger = container.getLogger();
if (logger != null) {
logger.log(getName() + "[" + container.getName() + "]: "
+ message);
} else {
String containerName = null;
if (container != null)
containerName = container.getName();
System.out.println(getName() + "[" + containerName
+ "]: " + message);
}
}
示例2: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any)
*
* @param message Message to be logged
* @param throwable Associated exception
*/
private void log(String message, Throwable throwable) {
Logger logger = null;
if (container != null)
logger = container.getLogger();
if (logger != null)
logger.log("StandardWrapperValve[" + container.getName() + "]: "
+ message, throwable);
else {
String containerName = null;
if (container != null)
containerName = container.getName();
System.out.println("StandardWrapperValve[" + containerName
+ "]: " + message);
System.out.println("" + throwable);
throwable.printStackTrace(System.out);
}
}
示例3: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
*/
void log(String message) {
Logger logger = null;
if (container != null)
logger = container.getLogger();
if (logger != null)
logger.log(getName() + "[" + container.getName() + "]: "
+ message);
else {
String containerName = null;
if (container != null)
containerName = container.getName();
System.out.println(getName() + "[" + containerName
+ "]: " + message);
}
}
示例4: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Host (if any)
*
* @param message Message to be logged
* @param throwable Associated exception
*/
protected void log(String message, Throwable throwable) {
Logger logger = null;
if (host != null)
logger = host.getLogger();
if (logger != null)
logger.log("HostConfig[" + host.getName() + "] "
+ message, throwable);
else {
System.out.println("HostConfig[" + host.getName() + "]: "
+ message);
System.out.println("" + throwable);
throwable.printStackTrace(System.out);
}
}
示例5: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any)
*
* @param message Message to be logged
* @param throwable Associated exception
*/
protected void log(String message, Throwable throwable) {
Logger logger = null;
String name = null;
if (container != null) {
logger = container.getLogger();
name = container.getName();
}
if (logger != null) {
logger.log(getName()+"[" + name + "]: " + message, throwable);
} else {
System.out.println(getName()+"[" + name + "]: " + message);
throwable.printStackTrace(System.out);
}
}
示例6: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Host (if any)
*
* @param message Message to be logged
* @param throwable Associated exception
*/
private void log(String message, Throwable throwable) {
Logger logger = null;
if (host != null)
logger = host.getLogger();
if (logger != null)
logger.log("UserConfig[" + host.getName() + "] "
+ message, throwable);
else {
System.out.println("UserConfig[" + host.getName() + "]: "
+ message);
System.out.println("" + throwable);
throwable.printStackTrace(System.out);
}
}
示例7: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
*/
protected void log(String message) {
Logger logger = null;
Container container = manager.getContainer();
if (container != null)
logger = container.getLogger();
if (logger != null) {
logger.log(getStoreName()+"[" + container.getName() + "]: "
+ message);
} else {
String containerName = null;
if (container != null)
containerName = container.getName();
System.out.println(getStoreName()+"[" + containerName
+ "]: " + message);
}
}
示例8: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
*/
protected void log(String message) {
Logger logger = container.getLogger();
if (logger != null)
logger.log(this.toString() + ": " + message);
else
System.out.println(this.toString() + ": " + message);
}
示例9: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any)
*
* @param message Message to be logged
* @param throwable Associated exception
*/
private void log(String message, Throwable throwable) {
Logger logger = connector.getContainer().getLogger();
if (logger != null)
logger.log(threadName + " " + message, throwable);
}
示例10: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log the specified message and exception to our current Logger
* (if any).
*
* @param message Message to be logged
* @param throwable Related exception
*/
protected void log(String message, Throwable throwable) {
Logger logger = getLogger();
if (logger != null)
logger.log(logName() + ": " + message, throwable);
else {
System.out.println(logName() + ": " + message + ": " + throwable);
throwable.printStackTrace(System.out);
}
}
示例11: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Context (if any)
*
* @param message Message to be logged
*/
private void log(String message) {
Logger logger = null;
if (context != null)
logger = context.getLogger();
if (logger != null)
logger.log("ContextConfig[" + context.getName() + "]: " + message);
else
System.out.println("ContextConfig[" + context.getName() + "]: "
+ message);
}
示例12: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
* @param throwable Associated exception
*/
protected void log(String message, Throwable throwable) {
Logger logger = container.getLogger();
if (logger != null)
logger.log("CertificatesValve[" + container.getName() + "]: " +
message, throwable);
else {
System.out.println("CertificatesValve[" + container.getName() +
"]: " + message);
throwable.printStackTrace(System.out);
}
}
示例13: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Engine (if any)
*
* @param message Message to be logged
*/
private void log(String message) {
Logger logger = null;
if (engine != null)
logger = engine.getLogger();
if (logger != null)
logger.log("EngineConfig: " + message);
else
System.out.println("EngineConfig: " + message);
}
示例14: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
*/
private void log(String message) {
Logger logger = container.getLogger();
String localName = threadName;
if (localName == null)
localName = "HttpConnector";
if (logger != null)
logger.log(localName + " " + message);
else
System.out.println(localName + " " + message);
}
示例15: log
import org.apache.catalina.Logger; //导入方法依赖的package包/类
/**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
* @param throwable Associated exception
*/
protected void log(String message, Throwable throwable) {
Logger logger = container.getLogger();
if (logger != null)
logger.log(this.toString() + ": " + message, throwable);
else {
System.out.println(this.toString() + ": " + message);
throwable.printStackTrace(System.out);
}
}