There is a fix/enhancement in SVN right now for this. Here is the way it works:
1. addTraceStatement does nothing to the data it is asked to trace. It merely calls the logWriter. 2. The logWriter is now configurable in ColdSpring and gets the value of debug when the application loads. 3. If debug is set to true, then complex values will be converted to simple values, then logged. If the value was originally a simple value, it is just logged. 4. If debug is set to false, then nothing is convered to simple values nor logged. You can now provide your own implementation of the logWriter. All you need to do is create an entry in your ColdSpring.xml with the bean ID of modelGlue.logWriter and make sure to link it to your modelGlue.modelGlueConfiguration bean so it'll know the debug status: *<bean id="modelglue.logWriter" class="ModelGlue.gesture.eventrequest.log.LogWriter">* * **<constructor-arg name="debugMode"><bean factory-bean="modelglue.modelGlueConfiguration" factory-method="getDebug" /></constructor-arg>* *</bean>** * Now you can do whatever you want to when logging. *Want to surpress all complex value logging?* Go for it. *Want to log remote requests and nothing else, while in production?* You can easily do that. And of course, you never ever have to touch a core Model Glue file to accomplish this. Don't believe me? Read http://docs.model-glue.com/wiki/FAQs/HowDoICustomizeTheModelGlueFramework DW DW On Thu, Jan 14, 2010 at 8:10 AM, Chris Blackwell <[email protected]> wrote: > Not in SVN yet, but would be nice if this fix was rolled out asap, even if > a complete rework of the logging is on the cards in the long run. > > 2010/1/14 Raymond Camden <[email protected]> > >> So does anyone know if the problems addresses here have been fixed >> back in the source? >> >> On Wed, Jan 13, 2010 at 1:12 PM, Chuck Savage <[email protected]> wrote: >> >> >> >> <cfif variables._modelGlue.configuration.debug EQ "none"> >> >> <cfreturn /> >> >> </cfif> >> >> Please let us know how the performance of this code compares to the >> other >> >> two approaches. >> > >> > Well, my completely unscientific approach, just involved pasting that >> code >> > in Dennis ahead of my other code, and then counting in my head as I >> tried >> > various pages and load times. Of course pages didn't load in the exact >> same >> > time each time, but mostly they did. On average, the above snippet >> loads >> > maybe a half second slower than just checking an already set true/false >> > value. >> > >> >> -- >> Model-Glue Sites: >> Home Page: http://www.model-glue.com >> Documentation: http://docs.model-glue.com >> Bug Tracker: http://bugs.model-glue.com >> Blog: http://www.model-glue.com/blog >> >> You received this message because you are subscribed to the Google >> Groups "model-glue" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<model-glue%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/model-glue?hl=en >> > > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<model-glue%[email protected]> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > -- “Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.” Guillaume Apollinaire quotes
-- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
