java - Remove log debug displaytag -
in application java use library displaytag version 1.2. when execute application, it's appears:
10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82) 10:50:09.258 [http-8080-1] debug org.displaytag.tags.tabletag - [objeto] first iteration=false (row number=82)
how remove because not necessary show debug log.
in application , have logging.properties:
handlers = org.apache.juli.filehandler, java.util.logging.consolehandler org.apache.juli.filehandler.level = info org.apache.juli.filehandler.directory = ${catalina.base}/logs org.apache.juli.filehandler.prefix = app. java.util.logging.consolehandler.level = info
i found solution. included file log4j.properties in src/main/resources , changed pom.xml
log4j.properties:
log4j.rootlogger=warn, a1 log4j.category.org.displaytag.tags.tabletag=error, a1
pom.xml:
<resources> <resource> <directory>src/main/resources</directory> <targetpath>${basedir}/target</targetpath> <filtering>true</filtering> <includes> <include>log4j.properties</include> </includes> </resource> </resources>
that's it!!!
Comments
Post a Comment