import logging # 简单打印日志举例 logging.basicConfig(level=logging.DEBUG) # 设置日志级别,WARN logging.warning('Watch out!') # will print a message to the console logging.info('I told you so') # will not print anything # 打印日志到文件,注意要新起一个文件,否则不能保存文件 def log_to_file(…
Idea2018中集成Tomcat9导致OutPut乱码找到tomcat的安装目录,打开logging.properties文件,增加一行代码,覆盖默认设置,将日志编码格式修改为GBK.java.util.logging.ConsoleHandler.encoding = GBK js代码 (function() { var CookieUtil = { // get the cookie of the key is name get : function(name) { var cookieN…