Cov txheej txheem:

Kuv yuav ntxiv NLog rau kuv qhov project li cas?
Kuv yuav ntxiv NLog rau kuv qhov project li cas?

Video: Kuv yuav ntxiv NLog rau kuv qhov project li cas?

Video: Kuv yuav ntxiv NLog rau kuv qhov project li cas?
Video: Quas Koj Ntxhais Rau Kuv Tub - Cai Hawj Feat. Maiv Xis Vaj「Official MV」 2024, Hlis ntuj nqeg
Anonim

Install NLog

Tom ntej no, koj tuaj yeem xaiv NLog . Config as tus pob koj xav tau nruab los ntawm tus NuGet Package Manager qhov rais. Los yog koj tuaj yeem ua tau install NLog siv tus Package Manager Console. Hom tus raws li hais kom ua tus Package Manager Console thiab nias nkag.

Ib yam li ntawd, kuv yuav ntxiv NLog config li cas rau ib qhov project?

Txoj nyem rau ntawm qhov teeb qhov project thiab xaiv Ntxiv ces File. Cia li xaiv qhov nlog . config cov ntaub ntawv los ntawm cov ntawv teev cia hauv qhov chaw uas nws tau muab tso rau tom qab muab tso ua ke thiab nws ua haujlwm zoo kawg nkaus.

Tsis tas li ntawd, NLog config yog dab tsi? NLog configuration yog formatted li XML thiab yog embedded nyob rau hauv ib qhov Visual Studio project config file (app. config lub web. config ) lossis yog ib leeg XML cov ntaub ntawv (Nco ntsoov teeb tsa Cov Ntaub Ntawv Cov Khoom: Luam Yog tias tshiab dua)

Ib yam li ntawd, nws nug, NLog yog dab tsi?

NLog yog ib tug saj zawg zog thiab dawb txiav platform rau ntau yam. NET platforms, suav nrog. NET standard. NLog ua kom yooj yim sau rau ntau lub hom phiaj. (database, cov ntaub ntawv, console) thiab hloov cov kev teeb tsa kev nkag rau ntawm-tus-fly.

Is NLog asynchronous?

NLog 1.0 txhawb nqa asynchronous nkag mus, tab sis tsis muaj kev txhawb nqa zoo rau asynchronous zam tuav. Qhov no yog vim lub hom phiaj wrappers tsis muaj peev xwm tau txais kev zam uas tau tsa rau lwm cov xov.

Pom zoo: