Esempio n. 1
0
 /// <summary>
 /// Log's an exception.
 /// </summary>
 /// <param name="ex">An Exception to log.</param>
 protected void LogException(Exception ex)
 {
     Logger.Log(ex);
 }
Esempio n. 2
0
 /// <summary>
 /// Log's a message.
 /// </summary>
 /// <param name="level">A Level that specifies the priority of the message.</param>
 /// <param name="message">A string that contains the message.</param>
 public void Log(Level level, string message)
 {
     Logger.Log(level, string.Format("Session [{0} {1}] - {2}", Id, Address, message));
 }