예제 #1
0
        protected override void Append(LoggingEvent loggingEvent)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();

            foreach (MongoDBAppenderParameter p in this.m_parameters)
            {
                dic.Add(p.ParameterName, p.FormatValue(loggingEvent));
            }
            var bsonDocument = new BsonDocument(dic);

            LogPool.Add(bsonDocument);
        }