⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log.java

📁 培训考试系统代码
💻 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 + -