Cov txheej txheem:

Log4j jar yog dab tsi?
Log4j jar yog dab tsi?

Video: Log4j jar yog dab tsi?

Video: Log4j jar yog dab tsi?
Video: [Selenium Java] Bài 30: Sử dụng Log4j để ghi Log vào file trong Selenium Java | Anh Tester 2024, Kaum ib hlis
Anonim

log4j yog JavaSW tsev qiv ntawv uas tshwj xeeb hauv kev txiav. Thaum lub sijhawm sau ntawv no, nws lub vev xaib yog nyob ntawm cog 4j /docs/ ua.

Kuj nug, log4j yog dab tsi thiab vim li cas nws thiaj siv?

cog 4j yog java framework/package siv los ua daim ntawv thov nkag ntawm java applications. Nws muaj 3 yam yooj yim loggers, appenders, thiab layouts uas yog siv ua hauj lwm rau lub hom phiaj ntawm kev nkag mus rau hauv ib tug systematic yam.

Tsis tas li ntawd, kuv yuav ua li cas rub tawm cov ntaub ntawv log4j jar? Download Log4j Jar cov ntaub ntawv:

  1. Mus rau Apache Logging Services thiab nyem Apache log4j.
  2. Nyem rau "Download" nyob rau sab laug zaub mov. Koj yuav tau txais qhov tseeb version ntawm no.
  3. Nyem rau ntawm qhov txuas tseem ceeb nyob rau sab saum toj ntawm nplooj ntawv.
  4. Txoj nyem rau ntawm cov ntaub ntawv Zip thiab xaiv "Extract All".

Ib tug kuj nug, qhov txawv ntawm log4j thiab log4j2 yog dab tsi?

cog 4j2 ntim nws API thiab kev siv hauv ob lub thawv cais. Koj tuaj yeem siv thiab tsim koj daim ntawv thov siv lub cog 4j -api. Yog tias koj xav siv SLF4JAPI, koj kuj xav tau cog 4j -slf4j-ib. jar file, uas muaj tus choj nruab nrab ob APIs.

Kuv yuav download tau thiab nruab log4j li cas?

Cov kauj ruam ua raws li:

  1. Mus rau Apache Logging Services thiab nyem Apache log4j.
  2. Nyem rau "Download" nyob rau sab laug zaub mov.
  3. Koj yuav tau txais qhov tseeb version ntawm no.
  4. Nyem rau ntawm qhov txuas tseem ceeb nyob rau sab saum toj ntawm nplooj ntawv.
  5. Xaiv lub xov tooj cua khawm rau "Txuag ntaub ntawv" thiab nyem OK.

Pom zoo: