Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 543 Bytes

README.md

File metadata and controls

22 lines (11 loc) · 543 Bytes

MiniProfiler extensions allows to save MiniProfiler results using NLog.

There are a few different ways to initialize NLogStorage.

Most simple one:

NLogStorage.SetAsStorage();

This will use default NLog logger (VXCore.NLog.MiniProfiler.NLogStorage) and "Debug" level to save MiniProfiler results.

Then you can specify your own NLog logger:

NLogStorage.SetAsStorage(logger: myLogger);

or logging level:

NLogStorage.SetAsStorage(logAsLevel: LogLevel.Debug);

or both:

NLogStorage.SetAsStorage(myLogger, LogLevel.Debug);