Log in laravel yog dab tsi?
Log in laravel yog dab tsi?

Video: Log in laravel yog dab tsi?

Video: Log in laravel yog dab tsi?
Video: Simple Custom Laravel Logging 2024, Kaum ib hlis
Anonim

Kev sau npe . Cov Laravel logging cov chaw muab cov txheej txheem yooj yim rau saum lub tsev qiv ntawv Monolog muaj zog. Los ntawm lub neej ntawd, Laravel yog configured tsim txhua hnub log cov ntaub ntawv rau koj daim ntawv thov uas tau khaws cia hauv qhov chaw cia / cov ntaub ntawv phau ntawv. Koj tuaj yeem sau cov ntaub ntawv rau lub log zoo li no: Log ::info('Qhov no yog qee cov ntaub ntawv tseem ceeb

Xav txog qhov no, cov ntaub ntawv laravel nyob qhov twg?

Los ntawm lub neej ntawd, Laravel tuav ib leeg log ntaub ntawv hauv kev khaws cia / cov ntaub ntawv / laravel . log nyob rau hauv qhov project directory, es tsis yog lub error_log xaiv los ntawm lub ntiaj teb no PHP configuration.

Tom qab ntawd, lo lus nug yog, Kuv yuav sau ib daim ntawv teev npe li cas? Txhawm rau tsim cov ntawv teev cia hauv Notepad:

  1. Nyem Start, taw tes rau Programs, taw tes rau Accessories, thiab tom qab ntawd nyem Notepad.
  2. Hom. LOG ntawm thawj kab, thiab tom qab ntawd nias ENTER kom txav mus rau kab tom ntej.
  3. Ntawm cov ntawv qhia zaub mov, nyem Txuag Raws li, ntaus lub npe piav qhia rau koj cov ntaub ntawv hauv cov ntaub ntawv npe lub thawv, thiab tom qab ntawd nyem OK.

Hauv qhov no, lub log channel yog dab tsi?

Cov channel yog luam tawm hauv log lus thiab kuj siv tau los coj txawv cov channel mus rau qhov chaw sib txawv / cov ntaub ntawv. Los ntawm lub neej ntawd, Symfony cov ntaub ntawv txhua cov lus rau hauv ib cov ntaub ntawv (tsis hais cov channel ).

Kev txiav txim yuam kev yog dab tsi?

Hauv computer science, ib yuam kev log yog ib cov ntaub ntawv ntawm qhov yuam kev tseem ceeb uas tau ntsib los ntawm daim ntawv thov, operating system lossis server thaum ua haujlwm. Qee qhov kev nkag mus hauv ib qho yuam kev log suav nrog kev noj nyiaj txiag ntawm rooj thiab kev teeb tsa kev noj nyiaj txiag.

Pom zoo: