久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

java - windows環(huán)境下啟動(dòng)Tomcat,日志只在文件中有,控制臺(tái)不顯示

瀏覽:134日期:2023-12-23 10:58:22

問題描述

windows環(huán)境下啟動(dòng)Tomcat,日志只在文件中有,控制臺(tái)中什么都不顯示,我使用的是原生的tomcat 7.0.59,tomcat中沒用log4j,但項(xiàng)目中用了log4j2

另外問一下start.bat最后一行call '%EXECUTABLE%' start %CMD_LINE_ARGS%改成call '%EXECUTABLE%' run %CMD_LINE_ARGS%是什么意思,麻煩詳細(xì)說(shuō)說(shuō),謝謝

下面是tomcat中l(wèi)ogging.properties配置(沒改過)

# Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. See the NOTICE file distributed with# this work for additional information regarding copyright ownership.# The ASF licenses this file to You under the Apache License, Version 2.0# (the 'License'); you may not use this file except in compliance with# the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an 'AS IS' BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler############################################################# Handler specific properties.# Describes specific configuration info for Handlers.############################################################1catalina.org.apache.juli.FileHandler.level = FINE1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs1catalina.org.apache.juli.FileHandler.prefix = catalina.2localhost.org.apache.juli.FileHandler.level = FINE2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs2localhost.org.apache.juli.FileHandler.prefix = localhost.3manager.org.apache.juli.FileHandler.level = FINE3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs3manager.org.apache.juli.FileHandler.prefix = manager.4host-manager.org.apache.juli.FileHandler.level = FINE4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs4host-manager.org.apache.juli.FileHandler.prefix = host-manager.java.util.logging.ConsoleHandler.level = FINEjava.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter############################################################# Facility specific properties.# Provides extra control for each logger.############################################################org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFOorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandlerorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFOorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandlerorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFOorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler# For example, set the org.apache.catalina.util.LifecycleBase logger to log# each component that extends LifecycleBase changing state:#org.apache.catalina.util.LifecycleBase.level = FINE# To see debug messages in TldLocationsCache, uncomment the following line:#org.apache.jasper.compiler.TldLocationsCache.level = FINE

java - windows環(huán)境下啟動(dòng)Tomcat,日志只在文件中有,控制臺(tái)不顯示

問題解答

回答1:

檢查下tomcat目錄logs下的catalina.out文件是否有輸出

標(biāo)簽: java
主站蜘蛛池模板: 丰城市| 东台市| 湄潭县| 蓬莱市| 威信县| 金塔县| 石首市| 德令哈市| 遂宁市| 铁岭县| 屯留县| 乌鲁木齐市| 阿勒泰市| 巨野县| 石棉县| 天气| 定远县| 云龙县| 陕西省| 色达县| 扎鲁特旗| 姜堰市| 汝城县| 梓潼县| 淳化县| 华容县| 息烽县| 筠连县| 年辖:市辖区| 乳山市| 连江县| 西藏| 丹巴县| 延津县| 广灵县| 绥阳县| 盘锦市| 屯昌县| 桦甸市| 资阳市| 宜昌市|