[logback-user] Request and response using Logback

gaston sponer gaston.sponer at hotmail.com
Mon Nov 18 18:58:19 CET 2013




Hi, I'm trying to render an XML Request/Response file using Logback, I want to log a XML request or response according to the logger level.Ex:
on Error level:
<OldSection>
    <sectionTitle>Sample Title</sectionTitle>
    <label> Hello Label </label>
    <heading>Hi </heading>
    <NewSection>
        <section>
            <InteractionSection>
                <sectionTitle>Section Title</sectionTitle>
                <label> Hello </label>
                <heading>Hi </heading>
                <para>
                    ...
                    ...
                </para>
            </InteractionSection>
        <section>
    </NewSection>
</OldSection>
on Debug level:
<OldSection>
    <sectionTitle>Sample Title</sectionTitle>
    <label> Hello Label </label>
    <heading>Hi </heading>
    <NewSection>
        <section>
            <InteractionSection>
                <sectionTitle>Section Title</sectionTitle>
            </InteractionSection>
        <section>
    </NewSection>
</OldSection>
on Info level:
<OldSection>
    <sectionTitle>Sample Title</sectionTitle>
</OldSection>
Any idea if I can use Logback to do that?Thanks.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20131118/bad65975/attachment.html>


More information about the Logback-user mailing list