<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>archive</title><link>https://archive-w.netlify.app/doc/framework/log_framework/</link><description>Recent content on archive</description><generator>Hugo</generator><language>zh-CN</language><atom:link href="https://archive-w.netlify.app/doc/framework/log_framework/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://archive-w.netlify.app/doc/framework/log_framework/jul/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://archive-w.netlify.app/doc/framework/log_framework/jul/</guid><description>&lt;h2 id="juljava-util-logging">
 JUL(java util logging)
 &lt;a class="anchor" href="#juljava-util-logging">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>
&lt;h3 id="配置模板">
 配置模板
 &lt;a class="anchor" href="#%e9%85%8d%e7%bd%ae%e6%a8%a1%e6%9d%bf">#&lt;/a>
&lt;/h3>
&lt;p class="warn">&lt;code>vim $(dirname $(which java))/../jre/lib/logging.properties&lt;/code>
&lt;br>&lt;code>vim ``dirname $(which java)``/../jre/lib/logging.properties&lt;/code>&lt;/p>
&lt;div class="outer yosemite">&lt;div class="dot red">&lt;/div>&lt;div class="dot amber">&lt;/div>&lt;div class="dot green">&lt;/div>&lt;/div>
&lt;div class="code-toolbar">&lt;pre data-lang="properties" data-line="" class="language-properties line-numbers" style="max-height: none">&lt;code class="language-properties">############################################################
# Default Logging Configuration File
#
# You can use a different file by specifying a filename
# with the java.util.logging.config.file system property.
# For example java -Djava.util.logging.config.file=myfile
############################################################

############################################################
# Global properties
############################################################

# &amp;quot;handlers&amp;quot; specifies a comma separated list of log Handler
# classes. These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only
# show messages at the INFO and above levels.
handlers= java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= INFO

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

# Example to customize the SimpleFormatter output format
# to print one-line log message like this:
# &amp;lt;level&amp;gt;: &amp;lt;log message&amp;gt; [&amp;lt;date/time&amp;gt;]
#
# java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################
com.xyz.foo.level = SEVERE
&lt;/code>&lt;/pre>&lt;/div>
&lt;/li>
&lt;li>
&lt;h3 id="使用">
 使用
 &lt;a class="anchor" href="#%e4%bd%bf%e7%94%a8">#&lt;/a>
&lt;/h3>
&lt;/li>
&lt;/ul>
&lt;h2 id="reference">
 Reference
 &lt;a class="anchor" href="#reference">#&lt;/a>
&lt;/h2>
&lt;ul>
&lt;li>


 &lt;a href="https://bilibili.com/video/BV13A41137Tc?p=6&amp;vd_source=550a4dc4b2a914c0681a14307bbe8cbe" rel="noopener" target="_blank">https://bilibili.com/video/BV13A41137Tc?p=6&amp;vd_source=550a4dc4b2a914c0681a14307bbe8cbe&lt;/a>&lt;/li>
&lt;li>


 &lt;a href="https://note.youdao.com/s/7retQ6yb" rel="noopener" target="_blank">https://note.youdao.com/s/7retQ6yb&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>