Disable DefaultFactory Logging


(Jaco Mateman) #1

I’ve something like https://groups.google.com/forum/#!topic/particularsoftware/7QK15QEMV4E but i’m using NServiceBus 5.2.25 and I use log4Net. But before the initialization of log4net nservicebus logging writes 1 line to de default logfile:
2018-01-30 15:41:31.176 INFO DefaultFactory Logging to ‘D:\Projects\xxxxxxx\xxxxxxxxx\bin\Debug’ with level Info

What can I do to prevent writing of ‘nsb_log_jjjj-mm-dd_0.txt’ in de application-directory of the endpoint?


(Szymon Kulec) #3

Hey Jaco,

I confirmed that the fix to the host was not ported to Host 6.* . I did it in this PR https://github.com/Particular/NServiceBus.Host/pull/148 and now it has been fixed. Please download the package https://www.nuget.org/packages/NServiceBus.Host/6.0.2 that includes the fix

Cheers,
Szymon


(Jaco Mateman) #4

Thank you, problem solved!