A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ElasticLINQ/ElasticLINQ/commit/851e0dcb5d3dccac4a315547ba03c95d52b25c3d below:

Flesh out XML documentation · ElasticLINQ/ElasticLINQ@851e0dc · GitHub

4 4

using System;

5 5

using System.Collections.Generic;

6 6 7 +

/// <summary>

8 +

/// Various extension methods to make logging to ILog more fluent.

9 +

/// </summary>

7 10

internal static class LogExtensions

8 11

{

9 -

public static void Debug(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string message, params object[] args)

12 +

/// <summary>

13 +

/// Logs a debug message to the logging system.

14 +

/// </summary>

15 +

/// <param name="log">The <see cref="ILog"/>) to receive the message.</param>

16 +

/// <param name="ex">The exception (optional).</param>

17 +

/// <param name="additionalInfo">Additional information to be logged (optional).</param>

18 +

/// <param name="messageFormat">The message (will be formatted, if <paramref name="args"/> is not null/empty; otherwise,

19 +

/// should be sent directly to the logging system).</param>

20 +

/// <param name="args">The arguments for <paramref name="messageFormat"/> (optional).</param>

21 +

public static void Debug(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string messageFormat, params object[] args)

10 22

{

11 -

log.Log(TraceEventType.Verbose, ex, additionalInfo, message, args);

23 +

log.Log(TraceEventType.Verbose, ex, additionalInfo, messageFormat, args);

12 24

}

13 25 14 -

public static void Error(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string message, params object[] args)

26 +

/// <summary>

27 +

/// Logs an error message to the logging system.

28 +

/// </summary>

29 +

/// <param name="log">The <see cref="ILog"/>) to receive the message.</param>

30 +

/// <param name="ex">The exception (optional).</param>

31 +

/// <param name="additionalInfo">Additional information to be logged (optional).</param>

32 +

/// <param name="messageFormat">The message (will be formatted, if <paramref name="args"/> is not null/empty; otherwise,

33 +

/// should be sent directly to the logging system).</param>

34 +

/// <param name="args">The arguments for <paramref name="messageFormat"/> (optional).</param>

35 +

public static void Error(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string messageFormat, params object[] args)

15 36

{

16 -

log.Log(TraceEventType.Error, ex, additionalInfo, message, args);

37 +

log.Log(TraceEventType.Error, ex, additionalInfo, messageFormat, args);

17 38

}

18 39 19 -

public static void Fatal(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string message, params object[] args)

40 +

/// <summary>

41 +

/// Logs a fatal message to the logging system.

42 +

/// </summary>

43 +

/// <param name="log">The <see cref="ILog"/>) to receive the message.</param>

44 +

/// <param name="ex">The exception (optional).</param>

45 +

/// <param name="additionalInfo">Additional information to be logged (optional).</param>

46 +

/// <param name="messageFormat">The message (will be formatted, if <paramref name="args"/> is not null/empty; otherwise,

47 +

/// should be sent directly to the logging system).</param>

48 +

/// <param name="args">The arguments for <paramref name="messageFormat"/> (optional).</param>

49 +

public static void Fatal(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string messageFormat, params object[] args)

20 50

{

21 -

log.Log(TraceEventType.Critical, ex, additionalInfo, message, args);

51 +

log.Log(TraceEventType.Critical, ex, additionalInfo, messageFormat, args);

22 52

}

23 53 24 -

public static void Info(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string message, params object[] args)

54 +

/// <summary>

55 +

/// Logs an information message to the logging system.

56 +

/// </summary>

57 +

/// <param name="log">The <see cref="ILog"/>) to receive the message.</param>

58 +

/// <param name="ex">The exception (optional).</param>

59 +

/// <param name="additionalInfo">Additional information to be logged (optional).</param>

60 +

/// <param name="messageFormat">The message (will be formatted, if <paramref name="args"/> is not null/empty; otherwise,

61 +

/// should be sent directly to the logging system).</param>

62 +

/// <param name="args">The arguments for <paramref name="messageFormat"/> (optional).</param>

63 +

public static void Info(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string messageFormat, params object[] args)

25 64

{

26 -

log.Log(TraceEventType.Information, ex, additionalInfo, message, args);

65 +

log.Log(TraceEventType.Information, ex, additionalInfo, messageFormat, args);

27 66

}

28 67 29 -

public static void Warn(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string message, params object[] args)

68 +

/// <summary>

69 +

/// Logs a warning message to the logging system.

70 +

/// </summary>

71 +

/// <param name="log">The <see cref="ILog"/>) to receive the message.</param>

72 +

/// <param name="ex">The exception (optional).</param>

73 +

/// <param name="additionalInfo">Additional information to be logged (optional).</param>

74 +

/// <param name="messageFormat">The message (will be formatted, if <paramref name="args"/> is not null/empty; otherwise,

75 +

/// should be sent directly to the logging system).</param>

76 +

/// <param name="args">The arguments for <paramref name="messageFormat"/> (optional).</param>

77 +

public static void Warn(this ILog log, Exception ex, IDictionary<string, object> additionalInfo, string messageFormat, params object[] args)

30 78

{

31 -

log.Log(TraceEventType.Warning, ex, additionalInfo, message, args);

79 +

log.Log(TraceEventType.Warning, ex, additionalInfo, messageFormat, args);

32 80

}

33 81

}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4