Inheritance: java.lang.Throwable
Beispiel #1
0
 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);
 }
Beispiel #2
0
 private void onNetworkError(Exception exception)
 {
     exception.printStackTrace();
     networkShutdown("disconnect.genericReason", new object[]
                                                 {
                                                     (new StringBuilder()).append("Internal exception: ").append(
                                                         exception.toString()).toString()
                                                 });
 }
Beispiel #3
0
 public virtual void info(object message, Exception e)
 {
   this.log(2, message, e);
 }
Beispiel #4
0
 public virtual void debug(object message, Exception e)
 {
   this.log(3, message, e);
 }
Beispiel #5
0
 public virtual void error(object message, Exception e)
 {
   this.log(0, message, e);
 }
Beispiel #6
0
 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);
 }
Beispiel #7
0
 public virtual void warn(object message, Exception e)
 {
   this.log(1, message, e);
 }
Beispiel #8
0
 public static void log(int level, object message, Exception e)
 {
   Log.getInstance().doLog(level, message, e);
 }
Beispiel #9
0
 public static void warn(object message, Exception e)
 {
   Log.log(1, message, e);
 }
Beispiel #10
0
 public static void error(object message, Exception e)
 {
   Log.log(0, message, e);
 }
Beispiel #11
0
 public static void info(object message, Exception e)
 {
   Log.log(2, message, e);
 }
Beispiel #12
0
 public static void debug(object message, Exception e)
 {
   Log.log(3, message, e);
 }