uPortal IRC Logs-2010-09-27

[10:36:08 CDT(-0500)] <EricDalquist> we opened a support case with a vendor for another product we use here about non-threadsafe updates of a static long they use for byte counting
[10:36:28 CDT(-0500)] <EricDalquist> essentially "private static long count = 0;" and doing a "count++"
[10:37:28 CDT(-0500)] <EricDalquist> got a response back of: "But since this is code that only gets used for small statistics that are never really used, having a atomic code block might slow the system down."
[10:37:55 CDT(-0500)] <EricDalquist> that was after our simple request of "Use an AtomicLong please"
[10:38:04 CDT(-0500)] <EricDalquist> how do you even respond to that ....
[12:12:15 CDT(-0500)] <mpolizzotti> With all the changes to xsl caching, is there still a way to output the xml string that gets transformed by the universality theme to a log file?
[12:16:17 CDT(-0500)] <EricDalquist> yes
[12:16:58 CDT(-0500)] <EricDalquist> you only need to edit log4j.properties
[12:17:06 CDT(-0500)] <mpolizzotti> okay.
[12:17:10 CDT(-0500)] <EricDalquist> getting the info ...
[12:17:13 CDT(-0500)] <mpolizzotti> thanks.
[12:19:18 CDT(-0500)] <EricDalquist> there are actually 5 points in the pipeline that you can log the full XML from now. The log categories are:
[12:19:19 CDT(-0500)] <EricDalquist> org.jasig.portal.rendering.LoggingStAXComponent.POST_THEME
[12:19:19 CDT(-0500)] <EricDalquist> org.jasig.portal.rendering.LoggingStAXComponent.PRE_THEME
[12:19:19 CDT(-0500)] <EricDalquist> org.jasig.portal.rendering.LoggingStAXComponent.POST_STRUCTURE
[12:19:19 CDT(-0500)] <EricDalquist> org.jasig.portal.rendering.LoggingStAXComponent.PRE_STRUCTURE
[12:19:19 CDT(-0500)] <EricDalquist> org.jasig.portal.rendering.LoggingStAXComponent.POST_LAYOUT
[12:20:00 CDT(-0500)] <mpolizzotti> Thanks for the info.
[12:20:20 CDT(-0500)] <EricDalquist> so for each one of those that you want the XML from in log4j.properties you add two lines:
[12:20:20 CDT(-0500)] <EricDalquist> log4j.logger.org.jasig.portal.rendering.LoggingStAXComponent.POST_THEME=DEBUG, R
[12:20:21 CDT(-0500)] <EricDalquist> log4j.additivity.org.jasig.portal.rendering.LoggingStAXComponent.POST_THEME=false
[12:20:43 CDT(-0500)] <EricDalquist> I'm going to be working on updating the docs for the new rendering pipeline tonight: https://wiki.jasig.org/display/UPC/Rendering+Pipeline+Refactoring