Henry, One can inherit from XmlSocketAppender class and implement a setLayout() method (or just access 'layout' directly) that replaces it with the PatternLayout layout in the setLayout() call.
The 'layout' variable defined in AppenderSkeleton (and used by XmlSocketAppender) is protected, so the derived class has access to it (which is what XmlSocketAppender does). You don't need to delete the XMLLayout because the LayoutPtr will automatically do this when you reassign layout (ie. layout=mypatternlayout). peter -- View this message in context: http://www.nabble.com/Programmatic-Configuration-of-XMLSocketAppender-tp23773258p23837639.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.