public virtual void log(int level, object message, Exception e) { if (this.contextPrefix != null) Log.getInstance().doLog(level, (object) new Log.SimpleMessage(this.contextPrefix, (object) ":", message), e); else Log.getInstance().doLog(level, message, e); }
private void onNetworkError(Exception exception) { exception.printStackTrace(); networkShutdown("disconnect.genericReason", new object[] { (new StringBuilder()).append("Internal exception: ").append( exception.toString()).toString() }); }
public virtual void info(object message, Exception e) { this.log(2, message, e); }
public virtual void debug(object message, Exception e) { this.log(3, message, e); }
public virtual void error(object message, Exception e) { this.log(0, message, e); }
protected internal virtual void doLog(int level, object message, Exception e) { if (level > 3) level = 3; if (level > this.debuglevel) return; for (int index = 0; index < this.logTargets.Length; ++index) this.logTargets[index].log(level, message, e); }
public virtual void warn(object message, Exception e) { this.log(1, message, e); }
public static void log(int level, object message, Exception e) { Log.getInstance().doLog(level, message, e); }
public static void warn(object message, Exception e) { Log.log(1, message, e); }
public static void error(object message, Exception e) { Log.log(0, message, e); }
public static void info(object message, Exception e) { Log.log(2, message, e); }
public static void debug(object message, Exception e) { Log.log(3, message, e); }