NLog.Mongo icon indicating copy to clipboard operation
NLog.Mongo copied to clipboard

MongoDB Target for NLog

Results 31 NLog.Mongo issues
Sort by recently updated
recently updated
newest added

Log properties Event.Id is cause problem, I had to change line 255 to this string key = Convert.ToString(property.Key, CultureInfo.InvariantCulture).Replace('.', '_');

i am not sure if i am making any mistakes or is that a connection string of this format: `mongodb://:@ds215388.mlab.com:15388/speckle` which is a typical MongoLab connection string will not work...

nLog does not work when I upgrade my project to the latest mongoDB Driver: ---> System.TypeInitializationException: The type initializer for 'NLog.Mongo.MongoTarget' threw an exception. ---> System.IO.FileLoadException: Could not load file...

``` var config = new LoggingConfiguration(); var mongoTarget = new MongoTarget(); config.AddTarget("targetMongo", mongoTarget); ``` ``` nlog.config ```

“field - Specifies a root level document field. There can be multiple fields specified.” "${var}" In mongodb, not a root field, but a property of a field。 nlog.config Example:

` private BsonDocument CreateDocument(LogEventInfo logEvent) { BsonDocument bsonDocument = new BsonDocument(); if (this.IncludeDefaults || this.Fields.Count == 0) { this.AddDefaults(bsonDocument, logEvent); } foreach (MongoField current in this.Fields) { BsonValue value =...

Bumps [NLog](https://github.com/NLog/NLog) from 5.0.2 to 5.0.5. Release notes Sourced from NLog's releases. NLog 5.0.5 Improvements #5092 InternalLogger - LogFile expand filepath variables (#5092) (@​RyanGaudion) #5090 ReplaceNewLines - Support Replacement with...

dependencies

Bumps [MongoDB.Driver](https://github.com/mongodb/mongo-csharp-driver) from 2.17.1 to 2.18.0. Release notes Sourced from MongoDB.Driver's releases. .NET Driver Version 2.18.0 Release Notes This is the general availability release for the 2.18.0 version of the...

dependencies

Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 6.0.0 to 6.0.2. Release notes Sourced from coverlet.collector's releases. v6.0.2 Fixed Threshold-stat triggers error #1634 Fixed coverlet collector 6.0.1 requires dotnet sdk 8 #1625 Type initializer errors...

dependencies
.NET

Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.8.0 to 17.9.0. Release notes Sourced from Microsoft.NET.Test.Sdk's releases. v17.9.0 What's Changed Remove dependency on Nuget.Frameworks by @​nohwnd in microsoft/vstest#4693 Add platform guard by @​dotMorten in microsoft/vstest#4737...

dependencies
.NET