aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/api/objects/Logger.java
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-12-15 16:11:54 +0100
committerGitHub <noreply@github.com>2021-12-15 16:11:54 +0100
commit128c74faa99dfef8d056c1d82c6e4388b9d470e8 (patch)
tree2c84162154ba681232f86dffd4106db530236814 /src/Java/gtPlusPlus/api/objects/Logger.java
parent47ce336f288a45aa3244c8ae1177499fa5080942 (diff)
parentff4b8c7068c2ea7d654e9beda00646d23e62b314 (diff)
downloadGT5-Unofficial-128c74faa99dfef8d056c1d82c6e4388b9d470e8.tar.gz
GT5-Unofficial-128c74faa99dfef8d056c1d82c6e4388b9d470e8.tar.bz2
GT5-Unofficial-128c74faa99dfef8d056c1d82c6e4388b9d470e8.zip
Merge pull request #65 from GTNewHorizons/unified-build-script2
Move sources and resources
Diffstat (limited to 'src/Java/gtPlusPlus/api/objects/Logger.java')
-rw-r--r--src/Java/gtPlusPlus/api/objects/Logger.java179
1 files changed, 0 insertions, 179 deletions
diff --git a/src/Java/gtPlusPlus/api/objects/Logger.java b/src/Java/gtPlusPlus/api/objects/Logger.java
deleted file mode 100644
index 1a1da6868b..0000000000
--- a/src/Java/gtPlusPlus/api/objects/Logger.java
+++ /dev/null
@@ -1,179 +0,0 @@
-package gtPlusPlus.api.objects;
-
-import cpw.mods.fml.common.FMLLog;
-import cpw.mods.fml.relauncher.FMLRelaunchLog;
-import gtPlusPlus.core.lib.CORE;
-import gtPlusPlus.preloader.CORE_Preloader;
-import gtPlusPlus.preloader.asm.AsmConfig;
-import org.apache.logging.log4j.LogManager;
-
-public class Logger {
-
- public Logger(String string) {
-
- }
-
- // Logging Functions
- public static final org.apache.logging.log4j.Logger modLogger = Logger.makeLogger();
-
- // Generate GT++ Logger
- public static org.apache.logging.log4j.Logger makeLogger() {
- final org.apache.logging.log4j.Logger gtPlusPlusLogger = LogManager.getLogger("GT++");
- return gtPlusPlusLogger;
- }
-
- private static final boolean enabled = !AsmConfig.disableAllLogging;
-
- public static final org.apache.logging.log4j.Logger getLogger() {
- return modLogger;
- }
-
- // Non-Dev Comments
- public static void INFO(final String s) {
- if (enabled) {
- modLogger.info(s);
- }
- }
-
- // Non-Dev Comments
- public static void MACHINE_INFO(String s, Object... args) {
- if (enabled) {
- boolean localPlayer = CORE_Preloader.DEV_ENVIRONMENT;
- if (CORE.ConfigSwitches.MACHINE_INFO || localPlayer) {
- final String name1 = gtPlusPlus.core.util.reflect.ReflectionUtils.getMethodName(2);
- modLogger.info("Machine Info: " + s + " | " + name1, args);
- }
- }
- }
-
- // Developer Comments
- public static void WARNING(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEBUG_MODE) {
- modLogger.warn(s);
- }
- }
- }
-
- // Errors
- public static void ERROR(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEBUG_MODE) {
- modLogger.fatal(s);
- }
- }
- }
-
- // Developer Logger
- public static void SPECIFIC_WARNING(final String whatToLog, final String msg, final int line) {
- if (enabled) {
- // if (!CORE_Preloader.DEBUG_MODE){
- FMLLog.warning("GT++ |" + line + "| " + whatToLog + " | " + msg);
- // }
- }
- }
-
- // ASM Comments
- public static void LOG_ASM(final String s) {
- if (enabled) {
- FMLRelaunchLog.info("[Special ASM Logging] ", s);
- }
- }
-
-
-
-
-
-
-
-
-
-
- /**
- * Special Loggers
- */
-
- /**
- * Special Logger for Bee related content
- */
- public static void BEES(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Bees] "+s);
- }
- }
- }
- /**
- * Special Logger for Debugging Bee related content
- */
- public static void DEBUG_BEES(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Debug][Bees] "+s);
- }
- }
- }
-
-
-
- /**
- * Special Logger for Materials related content
- */
- public static void MATERIALS(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Materials] "+s);
- }
- }
- }
- /**
- * Special Logger for Debugging Materials related content
- */
- public static void DEBUG_MATERIALS(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Debug][Materials] "+s);
- }
- }
- }
-
- /**
- * Special Logger for Reflection related content
- */
- public static void REFLECTION(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Reflection] "+s);
- }
- }
- }
-
-
- /**
- * Special Logger for Darkworld related content
- */
- public static void WORLD(final String s) {
- if (enabled) {
- if (CORE_Preloader.DEV_ENVIRONMENT || CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[WorldGen] "+s);
- }
- }
- }
-
- public static void RECIPE(String string) {
- if (enabled) {
- if (/*CORE_Preloader.DEV_ENVIRONMENT || */CORE_Preloader.DEBUG_MODE) {
- modLogger.info("[Recipe] "+string);
- }
- }
- }
-
- public static void SPACE(final String s) {
- if (enabled) {
- modLogger.info("[Space] "+s);
- }
- }
-
-
-
-}