Skip to content

Commit

Permalink
Merge pull request #79 from ahmettaha/master
Browse files Browse the repository at this point in the history
Added SubmitLog and CreateLog without source parameter
  • Loading branch information
niemyjski committed Feb 15, 2016
2 parents d920030 + 0f59def commit e355039
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Source/Shared/Extensions/ClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ public static void SubmitLog(this ExceptionlessClient client, string source, str
client.CreateLog(source, message, level.ToString()).Submit();
}

/// <summary>
/// Submits a log message event.
/// </summary>
/// <param name="client">The client instance.</param>
/// <param name="message">The log message.</param>
/// <param name="level">The log level.</param>
public static void SubmitLog(this ExceptionlessClient client, string message, LogLevel level) {
client.CreateLog(null, message, level.ToString()).Submit();
}

/// <summary>
/// Creates a log message event.
/// </summary>
Expand Down Expand Up @@ -120,6 +130,16 @@ public static EventBuilder CreateLog(this ExceptionlessClient client, string sou
return CreateLog(client, source, message, level.ToString());
}

/// <summary>
/// Creates a log message event.
/// </summary>
/// <param name="client">The client instance.</param>S
/// <param name="message">The log message.</param>
/// <param name="level">The log level.</param>
public static EventBuilder CreateLog(this ExceptionlessClient client, string message, LogLevel level) {
return CreateLog(client, null, message, level.ToString());
}

/// <summary>
/// Creates a feature usage event.
/// </summary>
Expand Down

0 comments on commit e355039

Please sign in to comment.