public static BsonDocument ToBsonDocument(this LogEventInfo logEvent)
		{
			var doc = new BsonDocument();

			doc.AddField("sequenceID", logEvent.SequenceID);
			doc.AddField("timeStamp", logEvent.TimeStamp);
			doc.AddField("machineName", Environment.MachineName);
			doc.AddField("loggerName", logEvent.LoggerName);
			doc.AddField("message", logEvent.Message);
			doc.AddField("formattedMessage", logEvent.FormattedMessage);
			doc.AddField("level", logEvent.Level);
			doc.AddField("stackTrace", logEvent.StackTrace);
			doc.AddField("userStackFrame", logEvent.UserStackFrame);
			doc.AddField("UserStackFrameNumber", logEvent.UserStackFrameNumber);
			doc.AddField("exception", logEvent.Exception);
			doc.AddField("properties", logEvent.Properties);
			doc.AddField("context", logEvent.Properties);
			doc.AddField("parameters", logEvent.Parameters);

			return doc;
		}
        public static BsonDocument ToBsonDocument(this LogEventInfo logEvent)
        {
            var doc = new BsonDocument();

            doc.AddField("sequenceID", logEvent.SequenceID);
            doc.AddField("timeStamp", logEvent.TimeStamp);
            doc.AddField("machineName", Environment.MachineName);
            doc.AddField("loggerName", logEvent.LoggerName);
            doc.AddField("message", logEvent.Message);
            doc.AddField("formattedMessage", logEvent.FormattedMessage);
            doc.AddField("level", logEvent.Level);
            doc.AddField("stackTrace", logEvent.StackTrace);
            doc.AddField("userStackFrame", logEvent.UserStackFrame);
            doc.AddField("UserStackFrameNumber", logEvent.UserStackFrameNumber);
            doc.AddField("exception", logEvent.Exception);
            doc.AddField("properties", logEvent.Properties);
            doc.AddField("context", logEvent.Properties);
            doc.AddField("parameters", logEvent.Parameters);

            return(doc);
        }