Xaylin
Xaylin
CC#
Created by Xaylin on 12/3/2024 in #help
Logging from disconnected Business logic
I wish, there is literally thousands of them I'd have to modify and test unfortunately. It might end up being what I (well, someone) has to do, but I was hoping to find a less tedious solution. At least at that point it could be redesigned to follow a better pattern.
10 replies
CC#
Created by Xaylin on 12/3/2024 in #help
Logging from disconnected Business logic
It doesn't have to be AsyncLocal, I just can't modify all of the business logic classes. They pretty much have to operate with just new(). Unfortunately they weren't created with any real structure so no BaseClass I can just add the log or job id to
10 replies
CC#
Created by Xaylin on 12/3/2024 in #help
Logging from disconnected Business logic
Yeah, the problem I run into is Job1 -> ServiceInstance - Initial LogWriter AsyncLocal is instanciated and actions are subscribed to and message logged here work perfectly fine -> BusinessLogicA -This is an entirely different classlibrary and may call any number of other business logic classes all of which use the generic new LogWriter(); So I have it all, up until I leave that AsyncLocal Class. Those business logic classes which are millions of lines of code, have no idea what a job number or log id is
10 replies