log.java
来自「培训考试系统代码」· Java 代码 · 共 77 行
JAVA
77 行
package com.huawei.icd30.agt.util;
/**
* Copyright 1988-2004, Huawei Tech. Co., Ltd.
* filename: Log.java
* description: 测试用,用于打印一条信息
* date: 2004-06-09
* @author 黄育源
* @version 3.0
*
* History: // 历史修改记录
* <author> <time> <version > <desc>
*/
public class Log
{
private static void log(String msg)
{
System.out.println(msg);
}
private static void log(String msg, Throwable throwable)
{
System.out.println(msg);
throwable.printStackTrace();
}
public static void debug(String msg)
{
log(msg);
}
public static void debug(String msg, Throwable throwable)
{
log(msg, throwable);
}
public static void warn(String msg)
{
log(msg);
}
public static void warn(String msg, Throwable throwable)
{
log(msg, throwable);
}
public static void error(String msg)
{
log( msg );
}
public static void error(String msg, Throwable throwable)
{
log( msg, throwable );
}
public static void info(String msg)
{
log( msg );
}
public static void info(String msg, Throwable throwable)
{
log( msg, throwable );
}
public static void fatal(String msg)
{
log( msg );
}
public static void fatal(String msg, Throwable throwable)
{
log( msg, throwable );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?