Hi Saravanan, Well you need to supply that file yourself, instead of relying on the default.
Create the META-INF/cxf/org.apache.cxf.Logger file somewhere on your classpath. If you are building a war, for instance, it should end up in WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger (or inside a jar in WEB-INF/lib). For more details refer to this link: http://cxf.apache.org/javadoc/latest/org/apache/cxf/common/logging/LogUtils.html HTH. Regards, Todd On Wed, 2010-03-31 at 08:09 -0400, SaravananRamamoorthy wrote: > > Hi Todd, > > I do not have cxf directory and org.apache.cxf.Logger file in my > application. > What should I done actually. > Please suggest me. > > Regards > Saravanan Ramamoorthy > > > Nist, Todd (IHG) wrote: > > > > Saravanan, > > > > By default CXF is using java.util.logging package. To configure it > to > > use Log4J one can either put a META-INF/cxf/org.apache.cxf.Logger > file > > onto the classpath with the > org.apache.cxf.common.logging.Log4jLogger > > class name in it as a single line, or you can supply a > > -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger > system > > property to your code, when executing. > > > > Refer to http://cwiki.apache.org/CXF20DOC/debugging-and-logging.html > > "Using Log4j Instead of java.util.logging" for a more information. > > > > Regards, > > Todd > > > > > > On Wed, 2010-03-31 at 07:02 -0400, SaravananRamamoorthy wrote: > >> > >> Hi, > >> > >> I use Interceptors like > >> > >> cxfEndpoint.getInInterceptors().add(new > >> LoggingInInterceptor()); > >> cxfEndpoint.getOutInterceptors().add(new > >> LoggingOutInterceptor()); > >> and I can able to view the Inbound and Outbound messages with > header > >> information. > >> > >> How I log those information using log4j. > >> > >> Please suggest me. > >> > >> Regards > >> Saravanan Ramamoorthy > >> > >> > >> > >> SaravananRamamoorthy wrote: > >> > > >> > Dear All, > >> > > >> > In my cxf application, I want to log the Inbound and outbound xml > >> payload. > >> > I am using log4j and I do not use any spring stuff. > >> > How can I do this using java code to log this feature. > >> > Please provide some sample code to do this. > >> > > >> > Regards > >> > Saravanan Ramamoorthy > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28094288.html > >> Sent from the cxf-user mailing list archive at Nabble.com. > >> > >> > >> > > > > > > > > -- > View this message in context: > http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28094947.html > Sent from the cxf-user mailing list archive at Nabble.com. > > >