- This topic has 2 replies, 2 voices, and was last updated 2018-08-19 at 11:06 pm by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Tagged: EXE DLL
Currently I have an EXE that is writing a Codesite log file that has it’s name created at runtime. Is there a way to have the DLL that it uses write to the same Codesite file.
CodeSite messages generated from both your EXE and your DLL will go to the CodeSite Dispatcher, which will allow messages from both sources to go to the same log file. The key is to get the Destination setup for both.
Is your DLL using the global CodeSite object or a separate TCodeSiteLogger instance? If it is using the global instance then it should use the same destination that was setup in the EXE. If it is a separate logger instance, the DLL logger will use either the Destination defined for the logger instance or the one defined for the CodeSiteManager. Therefore, I would suggest defining your desired log file destination and set it to the CodeSiteManager.DefaultDestination property. That way, all your loggers will use the same destination.
Ray
Hi I’m using the global Codesite object – I will set the CodeSiteManager.DefaultDestination property – thanks for you help.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)