This solution targeting .Net Framwork v4.7.1 is Jet Brains Raider and Microsoft Visual Studio compatible.
A custom C#.Net thread safe logging library per Type By descending level logging to temporary folder with Type as file name.
Tested by NUnit Tomer.Bar_Shlomo.com.Logging.Tests\SmartLoggerTests.cs using:
-
CurrentThreadTest using Tomer.Bar_Shlomo.com.Logging.Tests\SmartLogGenerator.cs
-
MultiThreadTestMultiLogs using 64 Tomer.Bar_Shlomo.com.Logging.Tests\SmartLogGenerator.cs threads
-
MultiThreadsSingleLogTest using 64 Tomer.Bar_Shlomo.com.Logging.Tests\SmartLogGenerator.cs threads
-
Sample output from all unit tests Tomer.Bar_Shlomo.com.Logging.Tests\Output\
-
Microsoft Windows 10
- Logging to C:\Users[UserName]\AppData\Local\Temp\Tomer.Bar_Shlomo.com.Logging.Tests.SmartLoggerTests.TestName[id].log
- Tested with Microsoft Visual Studio & Jet Brains Resharper Extention as well as with Jet Brains Raider.
-
Linux
- Logging to /tmp/Tomer.Bar_Shlomo.com.Logging.Tests.SmartLoggerTests.TestName[id].log
- Tested with Jet Brains Raider