mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
More logging tweaks. You can probably configure individual mod log files if you wish now
This commit is contained in:
1 parent
f169f7c92f
commit
9fafdc1695
2 files changed
+9
-2
No files matched your search
@@ -5,6 +5,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
import com.google.common.collect.ArrayListMultimap;
|
import com.google.common.collect.ArrayListMultimap;
|
||||||
@@ -60,14 +61,16 @@ public class LoadController
|
|||||||
boolean isActive = mod.registerBus(bus, this);
|
boolean isActive = mod.registerBus(bus, this);
|
||||||
if (isActive)
|
if (isActive)
|
||||||
{
|
{
|
||||||
FMLLog.fine("Activating mod %s", mod.getModId());
|
Level level = Logger.getLogger(mod.getModId()).getLevel();
|
||||||
|
FMLLog.log(mod.getModId(), Level.FINE, "Mod Logging channel %s configured at %s level.", level == null ? "default" : level);
|
||||||
|
FMLLog.log(mod.getModId(), Level.INFO, "Activating mod %s", mod.getModId());
|
||||||
activeModList.add(mod);
|
activeModList.add(mod);
|
||||||
modStates.put(mod.getModId(), ModState.UNLOADED);
|
modStates.put(mod.getModId(), ModState.UNLOADED);
|
||||||
eventBus.put(mod.getModId(), bus);
|
eventBus.put(mod.getModId(), bus);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FMLLog.warning("Mod %s has been disabled through configuration", mod.getModId());
|
FMLLog.log(mod.getModId(), Level.WARNING, "Mod %s has been disabled through configuration", mod.getModId());
|
||||||
modStates.put(mod.getModId(), ModState.UNLOADED);
|
modStates.put(mod.getModId(), ModState.UNLOADED);
|
||||||
modStates.put(mod.getModId(), ModState.DISABLED);
|
modStates.put(mod.getModId(), ModState.DISABLED);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -497,6 +497,10 @@ public class Loader
|
|||||||
{
|
{
|
||||||
FMLLog.fine("\t%s(%s:%s): %s (%s)", mod.getModId(), mod.getName(), mod.getVersion(), mod.getSource().getName(), CertificateHelper.getFingerprint(mod.getSigningCertificate()));
|
FMLLog.fine("\t%s(%s:%s): %s (%s)", mod.getModId(), mod.getName(), mod.getVersion(), mod.getSource().getName(), CertificateHelper.getFingerprint(mod.getSigningCertificate()));
|
||||||
}
|
}
|
||||||
|
if (getActiveModList().isEmpty())
|
||||||
|
{
|
||||||
|
FMLLog.fine("No user mod signature data found");
|
||||||
|
}
|
||||||
modController.transition(LoaderState.PREINITIALIZATION);
|
modController.transition(LoaderState.PREINITIALIZATION);
|
||||||
modController.distributeStateMessage(LoaderState.PREINITIALIZATION, disc.getASMTable(), canonicalConfigDir);
|
modController.distributeStateMessage(LoaderState.PREINITIALIZATION, disc.getASMTable(), canonicalConfigDir);
|
||||||
modController.transition(LoaderState.INITIALIZATION);
|
modController.transition(LoaderState.INITIALIZATION);
|
||||||
|
|||||||
Reference in new issue
Block a user