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

📄 gamelogger.java

📁 WebHangman a game can be play on the website contain the total code of JAVA
💻 JAVA
字号:
package com.aztsoft.games.util;

/**
 * A special type of Logger. completely useless.
 * Logging should be an aspect. Or I should convert to ruby.
 */
public class GameLogger {
    private static Logger logger;

    public static void log(String msg) {
        if (logger != null) {
            logger.log(msg);
        }
    }

    public static void log(Throwable t) {
        if (logger != null) {
            logger.log(t);
        }
    }

    public static void log(String msg, Throwable t) {
        if (logger != null) {
            logger.log(msg, t);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -