diff --git a/Source/Shared/Extensions/ClientExtensions.cs b/Source/Shared/Extensions/ClientExtensions.cs index e0ccd58b..bf878d0d 100644 --- a/Source/Shared/Extensions/ClientExtensions.cs +++ b/Source/Shared/Extensions/ClientExtensions.cs @@ -74,6 +74,16 @@ public static void SubmitLog(this ExceptionlessClient client, string source, str client.CreateLog(source, message, level.ToString()).Submit(); } + /// + /// Submits a log message event. + /// + /// The client instance. + /// The log message. + /// The log level. + public static void SubmitLog(this ExceptionlessClient client, string message, LogLevel level) { + client.CreateLog(null, message, level.ToString()).Submit(); + } + /// /// Creates a log message event. /// @@ -120,6 +130,16 @@ public static EventBuilder CreateLog(this ExceptionlessClient client, string sou return CreateLog(client, source, message, level.ToString()); } + /// + /// Creates a log message event. + /// + /// The client instance.S + /// The log message. + /// The log level. + public static EventBuilder CreateLog(this ExceptionlessClient client, string message, LogLevel level) { + return CreateLog(client, null, message, level.ToString()); + } + /// /// Creates a feature usage event. ///