tomcat9.0与jdk匹配_tomcat9支持的jdk版本

tomcat9.0与jdk匹配_tomcat9支持的jdk版本Apache Tomcat 9The internal logging for Apache Tomcat uses JULI, a packaged renamed fork of Apache Commons Logging that is

Apache Tomcat 9

The internal logging for Apache Tomcat uses JULI, a packaged renamed fork of Apache Commons Logging that is hard-coded to use the framework. This ensures that Tomcat’s internal logging and any web application logging will remain independent, even if a web application uses Apache Commons Logging.

To configure Tomcat to use an alternative logging framework for its internal logging, follow the instructions provided by the alternative logging framework for redirecting logging for applications that use . Keep in mind that the alternative logging framework will need to be capable of working in an environment where different loggers with the same name may exist in different class loaders.

A web application running on Apache Tomcat can:

  • Use any logging framework of its choice.
  • Use system logging API, .
  • Use the logging API provided by the Java Servlets specification,

The logging frameworks used by different web applications are independent. See class loading for more details. The exception to this rule is . If it is used directly or indirectly by your logging library then elements of it will be shared across web applications because it is loaded by the system class loader.

Java logging API — java.util.logging

Apache Tomcat has its own implementation of several key elements of API. This implementation is called JULI. The key component there is a custom LogManager implementation, that is aware of different web applications running on Tomcat (and their different class loaders). It supports private per-application logging configurations. It is also notified by Tomcat when a web application is unloaded from memory, so that the references to its classes can be cleared, preventing memory leaks.

This implementation is enabled by providing certain system properties when starting Java. The Apache Tomcat startup scripts do this for you, but if you are using different tools to run Tomcat (such as jsvc, or running Tomcat from within an IDE), you should take care of them by yourself.

More details about java.util.logging may be found in the documentation for your JDK and on its Javadoc pages for the package.

More details about Tomcat JULI may be found below.

Servlets logging API

The calls to to write log messages are handled by internal Tomcat logging. Such messages are logged to the category named


This logging is performed according to the Tomcat logging configuration. You cannot overwrite it in a web application.

The Servlets logging API predates the API that is now provided by Java. As such, it does not offer you much options. E.g., you cannot control the log levels. It can be noted, though, that in Apache Tomcat implementation the calls to or are logged at the INFO level. The calls to or are logged at the SEVERE level.

Console

When running Tomcat on unixes, the console output is usually redirected to the file named . The name is configurable using an environment variable. (See the startup scripts). Whatever is written to will be caught into that file. That may include:

  • Uncaught exceptions printed by
  • Thread dumps, if you requested them via a system signal

When running as a service on Windows, the console output is also caught and redirected, but the file names are different.

The default logging configuration in Apache Tomcat writes the same messages to the console and to a log file. This is great when using Tomcat for development, but usually is not needed in production.

Old applications that still use or can be tricked by setting attribute on a Context. If the attribute is set to , the calls to during request processing will be intercepted, and their output will be fed to the logging subsystem using the calls.
Note, that the feature is actually a trick, and it has its limitations. It works only with direct calls to , and only during request processing cycle. It may not work in other threads that might be created by the application. It cannot be used to intercept logging frameworks that themselves write to the system streams, as those start early and may obtain a direct reference to the streams before the redirection takes place.

Access logging

Access logging is a related but different feature, which is implemented as a . It uses self-contained logic to write its log files. The essential requirement for access logging is to handle a large continuous stream of data with low overhead, so it only uses Apache Commons Logging for its own debug messages. This implementation approach avoids additional overhead and potentially complex configuration. Please refer to the Valves documentation for more details on its configuration, including the various report formats.

激活谷谷主为您准备了激活教程,为节约您的时间请移步至置顶文章:https://sigusoft.com/99576.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/13442.html

(0)
上一篇 2024年 5月 15日 下午9:16
下一篇 2024年 5月 15日 下午10:02

相关推荐

  • word文档怎么转换成pdf手机_怎么样将word转化为pdf

    word文档怎么转换成pdf手机_怎么样将word转化为pdf手机word文档怎么转换成pdf?分享两种方法手机word文档怎么转换成pdf?在如今信息化的时代,电子文档已经成为人们日常办公不可或缺的一部分。随着科技的不断进步,电子文档的格式也在不断发展。PDF作为电子文档的一种重要格

    2024年 5月 2日
  • c语言中的内存指什么_c语言中的内存指什么意思

    c语言中的内存指什么_c语言中的内存指什么意思C语言学习之内存理解文章目录 一、程序运行为什么要内存1.1 计算机的运行目的1.2冯洛伊曼结构和哈弗结构1.3动态内存DRAM,静态内存SRAM1.4为啥需要内存 二、位、字节、半字、字的概念和内存位宽2.1什么是内存2.2内存的大小2.3内

    2024年 5月 25日
  • html表单对齐代码_html 表单对齐

    html表单对齐代码_html 表单对齐前端form表单中文本对齐以及文本输入框对齐要让表单中所有输入框对齐,你可以使用CSS中的`display: flex;`和`align-items: center;`属性。将表单容器设置为`display: flex;`,然后使用`align-items: center;`将所有输入框垂

    激活谷笔记 2024年 6月 2日
  • lnmp环境搭建是什么意思

    lnmp环境搭建是什么意思LNMP环境是一种常用于搭建Web服务器的软件组合,其中L代表Linux操作系统,N代表Nginx Web服务器,M代表MySQL数据库,P代表PHP编程语言。LNMP环境具有以下优点:1. 高性能:Nginx是一个高性能的Web服务器,可以处理大量并发请求,

    激活谷笔记 2024年 5月 19日
  • 反相积分运算电路实际电路和理想电路有什么差别_反相积分运算电路实际电路和理想电路有什么差别?

    反相积分运算电路实际电路和理想电路有什么差别_反相积分运算电路实际电路和理想电路有什么差别?运算放大器作为积分器电路及计算公式运算放大器可以配置为执行微积分运算,例如微分和积分。在积分电路中,输出是输入电压对时间的积分。无源积分器是一种不使用任何有源器件(如运算放大器或晶体管)而仅使用无源器件(如电阻器和电容器)的电路。由有源器件组成

    2024年 5月 25日
  • potplayer安卓版最新版_potplayer安卓版2021

    potplayer安卓版最新版_potplayer安卓版2021potplayer安卓版中文精简版(potplayer安卓手机版2021)potplayer怎么调成精简模式解决办法如下: 先打开一个视频,然后在播放屏幕中间单击鼠标右键,然后在弹出来的快捷菜单中选择“皮肤”→“透明度”→“主窗口”→“100%”即可。 具体操作

    激活谷笔记 2024年 5月 28日
  • linux删除命令

    linux删除命令请关注本头条号,每天坚持更新原创干货技术文章。如需学习视频,请在微信搜索公众号“智传网优”直接开始自助视频学习1. 前言本文主要讲解Linux删除文件夹或目录的命令rmdir和rm的使用方法。Windows上的文件夹与Linux系统里的目

    激活谷笔记 2024年 5月 20日
  • win10 找不到 gpedit.msc_win10找不到gpeditmsc怎么办

    win10 找不到 gpedit.msc_win10找不到gpeditmsc怎么办win10电脑想从用户获得管理员权限,打开本地策略组编辑器找不到gpedit.msc该怎么办?Windows 10/11家庭版本身不提供组策略编辑器功能(gpedit.msc),但是该功能并未完全缺失,而是被限制了。本文通过创建批处理文件开启组策略功能。 找不到gpedit.msc

    2024年 5月 22日
  • 分区表修复器怎么使用的_分区表修复器怎么使用的啊

    分区表修复器怎么使用的_分区表修复器怎么使用的啊分区表修复的简单方法!“电脑是Win10+Ubuntu双系统,因为Ubuntu分区所剩余的空间不足,而Windows所在的分区空间还很充足,于是准备切割出一个分区给Ubuntu重新挂载。分区完成后,重启开机无法启动电脑,使用U盘进入电脑后发现硬盘变成未分

    2024年 5月 21日
  • 分区类型mbr gpt_分区类型mbr还是guid

    分区类型mbr gpt_分区类型mbr还是guid转换分区表类型本软件支持传统的MBR分区表类型及较新的GUID分区表类型。必要时可通过本软件在这两种分区表类型之间进行无损转换。转换时不会破坏文件数据,但是对于不支持GUID分区表格式的操作系统,将无法访问使用GUID分区表的磁盘分区及其文件!一、转换分区表类型为GUID格式

    2024年 5月 27日
  • linux 串口操作_linux串口操作函数

    linux 串口操作_linux串口操作函数详解Linux下的串口简介串口也称串行通信接口(通常指COM接口),是实际工作中经常使用的一个接口,比如Linux下使用的debug串口,它用来登录Linux系统,输出log。另外也会使用串口和外部的一些模块通信,比如GPS模块、RS485等。串

    2024年 5月 31日
  • 一阶低通滤波器系统函数_一阶低通滤波器的系统函数

    一阶低通滤波器系统函数_一阶低通滤波器的系统函数一阶RC滤波器算法研究概述滤波器设计是一个非常重要的事情,在实际的工程项目设计时通常利用数字滤波代替模拟滤波,但是数字滤波有时候需要很多资源也很难达到仅仅需要一个电容和电阻实现的模拟滤波电路。在实际的数字滤波器设计时基本的滤波算

    2024年 5月 28日
关注微信