Logging XML

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Logging XML

rabegg
Hi,

Looking at the source code of some components I can see poor diagnostic logging etiquette which will produce poor performance. For example, converting a DOM document into a string purely for logging purposes but not protecting the conversion with a isLoggable call. This means even if I don't have the necessary logging enabled the string conversion will be done every time. In some cases this is done within a loop, which compounds the problem even further (see org.ow2.petals.se.eip.patterns.DynamicRouter line 219).

Cheers,
Rich.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=983#983

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general
Reply | Threaded
Open this post in threaded view
|

Re: Logging XML

rnaudin-4
You're absolutely right about this point.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=984#984

-------------------- m2f --------------------

_______________________________________________
General mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/general