Exemple #1
0
 public static void LogError(this ICanLog canLog, string fmt, params object[] args)
 {
     LogMessage(canLog, LogLevel.Error, fmt, args);
 }
Exemple #2
0
        private static void LogMessage(ICanLog canLog, LogLevel logLevel, string fmt, params object[] args)
        {
            var message = args.Length > 0 ? string.Format(fmt, args) : fmt;

            LogManager.Instance.LogMessage(canLog.GetType(), logLevel, message);
        }
Exemple #3
0
 public static void Warn(this ICanLog @this, string message, Exception ex)
 {
     Logger.Warn(message, ex);
 }
Exemple #4
0
 public static void LogTrace(this ICanLog canLog, string fmt, params object[] args)
 {
     LogMessage(canLog, LogLevel.Trace, fmt, args);
 }
Exemple #5
0
 public static void Warn(this ICanLog @this, Exception ex)
 {
     Logger.Warn(ex);
 }
Exemple #6
0
 public static void Fatal(this ICanLog @this, string message, Exception ex)
 {
     Logger.Fatal(message, ex);
 }
Exemple #7
0
 public static void LogError(this ICanLog @this, Exception ex)
 {
     Logger.LogError(ex, string.Empty);
 }
Exemple #8
0
 public static void Fatal(this ICanLog @this, Exception ex)
 {
     Logger.Fatal(ex);
 }
Exemple #9
0
 public static void LogInformation(this ICanLog @this, string message)
 {
     Logger.LogInformation(message);
 }
Exemple #10
0
 public static void LogCritical(this ICanLog @this, Exception ex)
 {
     Logger.LogCritical(ex, string.Empty);
 }
Exemple #11
0
 public static void LogWarning(this ICanLog @this, string message)
 {
     Logger.LogWarning(message);
 }
Exemple #12
0
 public static void LogCritical(this ICanLog @this, string message)
 {
     Logger.LogCritical(message);
 }
 public SocksClientSourceFromListener(IPEndPoint listenEndPoint, ICanLog log)
 {
     logger   = log;
     listener = new TcpListener(listenEndPoint);
 }
Exemple #14
0
 /// <summary>
 /// Ensure the action is written to the logger.
 /// </summary>
 /// <param name="logger">The logger.</param>
 public void Log(ICanLog logger)
 {
     logger.Write(_code, _actionPerformed);
 }
Exemple #15
0
 public static void LogWarning(this ICanLog @this, Exception ex)
 {
     Logger.LogWarning(ex.ToString());
 }
Exemple #16
0
 public static void Info(this ICanLog @this, string message)
 {
     Logger.Info(message);
 }
Exemple #17
0
 public static void LogInformation(this ICanLog @this, Exception ex)
 {
     Logger.LogInformation(ex.ToString());
 }
Exemple #18
0
 public static void Error(this ICanLog @this, Exception ex)
 {
     Logger.Error(ex);
 }
Exemple #19
0
 public static void LogCritical(this ICanLog @this, string message, Exception ex)
 {
     Logger.LogCritical(ex, message);
 }
Exemple #20
0
 public static void Info(this ICanLog @this, Exception ex)
 {
     Logger.Info(ex);
 }
Exemple #21
0
 public static void LogWarning(this ICanLog @this, string message, Exception ex)
 {
     Logger.LogWarning(ex, message);
 }
Exemple #22
0
 public static void Error(this ICanLog @this, string message, Exception ex)
 {
     Logger.Error(message, ex);
 }
Exemple #23
0
 public static void LogInformation(this ICanLog @this, string message, Exception ex)
 {
     Logger.LogInformation(ex, message);
 }
Exemple #24
0
 public static void Info(this ICanLog @this, string message, Exception ex)
 {
     Logger.Info(message, ex);
 }
Exemple #25
0
 public static void Fatal(this ICanLog @this, string message)
 {
     Logger.Fatal(message);
 }
Exemple #26
0
 public static void LogWarning(this ICanLog canLog, string fmt, params object[] args)
 {
     LogMessage(canLog, LogLevel.Warn, fmt, args);
 }
Exemple #27
0
 public static void Error(this ICanLog @this, string message)
 {
     Logger.Error(message);
 }
Exemple #28
0
 public static void LogError(this ICanLog canLog, string message, Exception e)
 {
     LogMessage(canLog, LogLevel.Error, message + " {0}", e);
 }
Exemple #29
0
 public static void Warn(this ICanLog @this, string message)
 {
     Logger.Warn(message);
 }
 public Socks4ClientHandlerBase(ICanLog loggerToInitialize)
 {
     logger = loggerToInitialize;
 }
 private static void LogMessage(ICanLog canLog, LogLevel logLevel, string fmt, params object[] args)
 {
     var message = args.Length > 0 ? string.Format(fmt, args) : fmt;
     LogManager.Instance.LogMessage(canLog.GetType(), logLevel, message);
 }