Exemple #1
0
 public static void log(Object message) {
   if (message == null) {
     info(null);
   } else {
     info(message.toString());
   }
 }
Exemple #2
0
 public static void init(Configuration config) {
   Property propDebug = config.get(Configuration.CATEGORY_GENERAL, Reference.DEBUG, true);
   propDebug.comment = Comments.DEBUG;
   Redmagic.DEBUG = propDebug.getBoolean(true);
   if (Redmagic.DEBUG) {
     redLogger = LogManager.getLogger(Reference.MOD_ID);
     LogUtils.info("Initialise Debugging...");
   }
 }