Please refer this page: http://cxf.apache.org/docs/general-cxf-logging.html
http://cxf.apache.org/docs/message-logging.html Make sure log level is info. On Fri, Jul 13, 2018 at 4:07 PM Tóth Csaba <ig...@domen.hu> wrote: > Hello! > > I'd like to turn on the logging for the cxf. I readed all the tutorials > and examples, but not working. I know I miss some basic thing... > I create the file: > META-INF\cxf\org.apache.cxf.Logger > and write inside: > org.apache.cxf.common.logging.Log4jLogger > download and put into the libs the apache log4j : log4j-1.2.17.jar > (version 1 and not the 2) > create the config file: > WEB-INF\classes\log4j.properties > put inside: > # Root logger option > log4j.rootLogger=FINE, file, stdout > > > # Direct log messages to a log file > log4j.appender.file=org.apache.log4j.RollingFileAppender > log4j.appender.file.File=C:\\log.txt > log4j.appender.file.MaxFileSize=100MB > log4j.appender.file.MaxBackupIndex=1 > log4j.appender.file.layout=org.apache.log4j.PatternLayout > log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - > %m%n > > # Direct log messages to stdout > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.Target=System.out > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L > - %m%n > > put the cxf config: > <cxf:bus> > <cxf:features> > <cxf:logging/> > </cxf:features> > </cxf:bus> > > And no logging, noting in the file system, and nothing in the tomcat log > file. > (I need the code logs, not the ws messages (yet)) > What I miss? > Thanx > Csaba > >