📄 log.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -