private void CreateLog <TArgument1>(
            string message,
            TArgument1 argument1,
            global::Exceptionless.Logging.LogLevel level)
        {
            var formattedMessage = string.Format(message, new object[] { argument1 });

            CreateLog(formattedMessage, level);
        }
        private void CreateLogWithException(string message, Exception exception, global::Exceptionless.Logging.LogLevel level)
        {
            var reference = Guid.NewGuid();


            // exception is the parent
            var eventBuilder = ExceptionlessClient.Default.CreateException(exception);

            eventBuilder.SetReferenceId(reference.ToString());
            eventBuilder.Submit();

            // log event is the child
            var logger = ExceptionlessClient.Default.CreateLog(
                this.SourceType,
                message,
                global::Exceptionless.Logging.LogLevel.Debug);

            logger.SetEventReference("ReferenceId", reference.ToString());
            logger.Submit();
        }
 private void CreateLog(string message, global::Exceptionless.Logging.LogLevel level)
 {
     ExceptionlessClient.Default.SubmitLog(this.SourceType, message, level);
 }