Cov txheej txheem:

Monolog hauv laravel yog dab tsi?
Monolog hauv laravel yog dab tsi?

Video: Monolog hauv laravel yog dab tsi?

Video: Monolog hauv laravel yog dab tsi?
Video: Владимир Винокур "Великий и могучий русский язык" 2024, Hlis ntuj nqeg
Anonim

Monolog yog lub tsev qiv ntawv teev npe uas twb muaj lawm rau PHP. Nws yog qhov nrov tshaj plaws hauv PHP moj khaum xws li Laravel thiab Symfony, qhov twg nws siv ib qho kev sib txuas rau kev kaw cov tsev qiv ntawv.

Ntxiv mus, 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.

yuam kev logging 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.

Kuj paub, 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.

Laravel log yog dab tsi?

Log cov ntaub ntawv yog nyob rau hauv cia / cov ntaub ntawv nplaub tshev. laravel . log yog lub npe filename. Yog tias muaj teeb meem kev tso cai nrog rau log nplaub tshev, Laravel cia li nres. Yog tias koj siv PHP-FPM, xyuas nws log cov ntaub ntawv ib yam nkaus (koj tuaj yeem pom txoj hauv kev log cov ntaub ntawv hauv PHP-FPM pool config).

Pom zoo: