Can't write to ULS
-
29-09-2020 - |
Pregunta
I have done some minor fixes to a timerjob, which writes to ULS after every step and error, but, for some reason after last deployment, it fails and is most confusing to me - doesn't write to ULS (even though from progress it is clearly seen that it should)
Solución 2
The problem is that the farm was on few machines, so the one on which the project was deployed, wasn't the one on which it worked
Otros consejos
Try these lines to write on the Log file:
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("Your Category", TraceSeverity.High, EventSeverity.Information), TraceSeverity.High, "My log text");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a sharepoint.stackexchange