1 package org.catacomb.interlish.report; 2 3 import org.catacomb.interlish.structure.InfoLog; 4 import org.catacomb.interlish.structure.InfoMessage; 5 import org.catacomb.report.E; 6 7 8 public class UserLog { 9 10 11 public static InfoLog log; 12 13 public static void setLog(InfoLog lg) { 14 log = lg; 15 } 16 17 public static void infoMsg(String msgtyp, String msg) { 18 if (log == null) { 19 E.info("user log needs druid access " +msgtyp + " " + msg); 20 } else { 21 log.addInfoMessage(InfoMessage.INFO, msgtyp, msg); 22 23 } 24 } 25 26 public static void errorMsg(String msgtyp, String msg) { 27 if (log == null) { 28 E.info("user log needs druid access " +msgtyp + " " + msg); 29 30 } else { 31 log.addInfoMessage(InfoMessage.ERROR, msgtyp, msg); 32 } 33 34 35 } 36 37 38 }