User Tools

Site Tools


Sidebar

Nebol Software Projects:

.NET Class Libraries

Contact info:

johan@nebol.se

nebollogger

This is an old revision of the document!


NebolLogger

Use a script from the “Database Scripts”-folder to create the database.

Adding the database destination in .NET Core with NebolLogger.EntityFramework :

var optionsBuilder = new DbContextOptionsBuilder<NebolLoggerDbContext>();
optionsBuilder.UseSqlServer(Config.ConnectionString);
var dest = new Destination_Database(optionsBuilder.Options);
Logger.Instance.Destinations.Add(dest);
Logger.Instance.Trace("Logging initialized");
nebollogger.1620423930.txt.gz · Last modified: 2021/05/07 23:45 by nebol