Is there any mechanism to hook into objects you've already written and get a log message for any of the methods called? Let's say I have TDocument object. I'd like the logger to fire anytime a method of TDocument was called without needing to go in and "dirty" up the code with .Log calls.
Yes, kind of. If you're methods are virtual you can inject events into them (Aspect Oriented Programming - AOP). Although it probably wouldn't be a trivial exercise.
Amazing. thank you
Thank you Alister!
And then a WITH?!? I'm telling you, this video is an emotional roller coaster!
This very interesting. I currently using my own logging code. Maybe I want to switch to QuickLogger in next project. Thanks.
the same!
Thank you for your education.
Using QuickLogger here. It's easy to extend the logging, we added a new provider logging to TCP. BTW : Didn't know you could use the Format format.
Glad you learnt something new!
Is there any mechanism to hook into objects you've already written and get a log message for any of the methods called? Let's say I have TDocument object. I'd like the logger to fire anytime a method of TDocument was called without needing to go in and "dirty" up the code with .Log calls.
Yes, kind of. If you're methods are virtual you can inject events into them (Aspect Oriented Programming - AOP). Although it probably wouldn't be a trivial exercise.
Thanks from Ukraine! 🎉
Alister, what makes those begin/end color matches?
CnWizards. Http://cnpack.org
+1 for correct spelling
You mean TimePrecission? ;-)