Tomcat log file name yog dab tsi?
Tomcat log file name yog dab tsi?

Video: Tomcat log file name yog dab tsi?

Video: Tomcat log file name yog dab tsi?
Video: How to set user name and password in apache tomcat in Hindi 2024, Hlis ntuj nqeg
Anonim

Tshawb xyuas Apache Tomcat cov ntaub ntawv . Lub ntsiab Apache Tomcat kev teeb tsa ntaub ntawv yog ntawm /opt/bitnami/ tomcat /conf/server. xml. Ib zaug Apache Tomcat pib, nws yuav tsim ob peb cov ntaub ntawv log hauv /opt/bitnami/ tomcat / cov ntaub ntawv phau ntawv. Lub ntsiab log ntaub ntawv yog cov catalina.

Tsuas yog li ntawd, Tomcat cav yog dab tsi?

Ib qho kev piav qhia ntawm Tomcat logging . Raws li ntawm Tomcat 5.5, Apache's Java Commons Kev sau npe (JCL) tshuab siv thoob plaws Tomcat . JCL yog lub teeb yuag API rau Java daim ntawv thov uas tso cai rau hierarchical kaw lus kom tau txais kev txhawb nqa thoob plaws txhua qhov log qib, ywj siab ntawm kaw lus kev siv.

Tsis tas li ntawd, Catalina log file yog dab tsi? Cov catalina . log ntaub ntawv muaj tag nrho log cov lus uas tau sau rau Tomcat cov qhov system. tawm thiab system. yuam kev. Tomcat cov sab hauv log cov lus siv java.

Ib tug kuj nug, kuv tuaj yeem nrhiav Tomcat cav qhov twg?

Rau Tomcat qhov tseeb cov ntaub ntawv muab tso rau hauv CATALINA_BASE/ cov ntaub ntawv phau ntawv. Tus nqi ntawm CATALINA_BASE teeb tsa los ntawm IntelliJ IDEA yuav raug luam tawm hauv lub console ntawm Khiav lossis Debug lub qhov rais. Koj tseem tuaj yeem nrhiav tau log cov ntaub ntawv hauv qab lub tswv yim.

Yuav ua li cas kuv txwv Tomcat cav los ntawm kev nkag mus rau hauv Catalina tawm?

tawm tag nrho, teeb CATALINA_OUT = / dev / null hauv catalina .sh. Koj yuav pom log cov ntaub ntawv tsim raws li koj log kev teeb tsa.

Koj tuaj yeem sim ua qhov no:

  1. Kho kom raug "$CATALINA_BASE"/bin/catalina.sh cov ntaub ntawv.
  2. Nrhiav CATALINA_OUT="$CATALINA_BASE"/logs/catalina. tawm.
  3. Hloov nrog txoj kev tshiab.

Pom zoo: