gpt4 book ai didi

java - 试图弄清楚如何最小化 ehcache 日志(n.s.e.constructs.web.filter.Filter)

转载 作者:行者123 更新时间:2023-11-28 22:31:04 26 4
gpt4 key购买 nike

我刚开始使用 ehcache,我猜我收到的这些调试消息来 self 正在使用的一个开源项目。日志像野火一样增长,我希望我能找到一种方法来减少它们。这些是每次页面重新加载时我收到的日志消息类型。

08:33:19.626 [http-8080-6] DEBUG n.s.e.constructs.web.filter.Filter - Request Headers: host -> my.application.com: connection -> keep-alive: cache-control -> max-age=0: accept -> */*: if-none-match -> W/"17227-1367868490000": if-modified-since -> Mon, 06 May 2013 19:28:10 GMT: user-agent -> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36: referer -> my.application.com/f/u25l1s4/normal/render.uP: accept-encoding -> gzip,deflate,sdch: accept-language -> en-US,en;q=0.8: cookie -> SESS29f919b3f2c84b3e362ffe4e56d595bd=4b4e6edlaadlhfa6gu8lj66u11; __utma=90227742.1696363642.1351091807.1375806239.1376082782.23; __utmz=90227742.1375806239.22.5.utmcsr=...|utmccn=(referral)|utmcmd=referral|utmcct=/get-help/guides-faqs/emailcalendar/office-365-configuration; BIGipServertest_portal_pool=973860009.36895.0000; __utma=124793366.1826473631.1376577744.1376577744.1376580642.2; __utmb=124793366.37.9.1376580778696; __utmc=124793366; __utmz=124793366.1376577744.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

08:33:19.627 [http-8080-6] DEBUG n.s.e.c.web.filter.CachingFilter - Thread http-8080-6 has been marked as visited.

08:33:19.627 [http-8080-6] DEBUG net.sf.ehcache.Cache - Cache: SimplePageCachingFilter store hit for GET/ResourceServingWebapp/rs/backbone/0.9.2/backbone-0.9.2.min.jsnull

08:33:19.629 [http-8080-6] DEBUG n.s.e.constructs.web.filter.Filter - Request Headers: host -> my.application.com: connection -> keep-alive: cache-control -> max-age=0: accept -> */*: if-none-match -> W/"17227-1367868490000": if-modified-since -> Mon, 06 May 2013 19:28:10 GMT: user-agent -> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36: referer -> my.application.com/f/u25l1s4/normal/render.uP: accept-encoding -> gzip,deflate,sdch: accept-language -> en-US,en;q=0.8: cookie -> SESS29f919b3f2c84b3e362ffe4e56d595bd=4b4e6edlaadlhfa6gu8lj66u11; __utma=90227742.1696363642.1351091807.1375806239.1376082782.23; __utmz=90227742.1375806239.22.5.utmcsr=...|utmccn=(referral)|utmcmd=referral|utmcct=/get-help/guides-faqs/emailcalendar/office-365-configuration; BIGipServertest_portal_pool=973860009.36895.0000; __utma=124793366.1826473631.1376577744.1376577744.1376580642.2; __utmb=124793366.37.9.1376580778696; __utmc=124793366; __utmz=124793366.1376577744.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

关于我应该做什么或看什么有什么建议吗?

谢谢,劳拉

最佳答案

可能 Tomcat 的级别更冗长。 Tomcat使用java.util.logging API (JUL) ,因此您有一个 logging.properties 文件(在应用程序中或在 Tomcat 的 conf 目录中)。

在这些文件中,您可以找到下一行。

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter

更改到所需级别。

另见:

关于java - 试图弄清楚如何最小化 ehcache 日志(n.s.e.constructs.web.filter.Filter),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18256722/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com