i have .net 4.5.2 application , have installed serilog 2.1.0
, serilog.sinks.mongodb 2.0.19
have configured sink
var log = new seri.loggerconfiguration() .writeto.mongodbcapped("mongodb://localhost:27017/test",collectionname: "logs") .createlogger();
however getting error
could not load file or assembly 'serilog.fullnetfx, version=1.5.0.0, culture=neutral, publickeytoken=24c2f752a8e58a10' or 1 of dependencies. system cannot find file specified.":"serilog.fullnetfx, version=1.5.0.0, culture=neutral, publickeytoken=24c2f752a8e58a10
the mongodb sink updated day ago support serilog 2.0. need run:
update-package serilog.sinks.mongodb
Comments
Post a Comment