×ðÁú¿­Ê±

thinkphpÔõôɾ³ý¹ýʧÈÕÖ¾¼Í¼

ÔÚʹÓÃthinkphp¿ò¼Ü¿ª·¢ÏîÄ¿µÄÀú³ÌÖÐ £¬ÎÒÃÇÄÑÃâ»áÓöµ½Ò»Ð©¹ýʧ £¬ÕâЩ¹ýʧ»á±»¼Í¼ÔÚ¿ò¼Ü×Ô´øµÄÈÕÖ¾ÎļþÖÐ £¬Àû±ãÎÒÃǾÙÐÐÅŲéºÍÐÞ¸´¡£È»¶ø £¬µ±¹ýʧÈÕÖ¾Á¿¹ý´óʱ £¬»áÕ¼Óôó×ڵĴÅÅÌ¿Õ¼ä £¬Ó°ÏìЧÀÍÆ÷µÄÔËÐС£Òò´Ë £¬ÔÚÕâƪÎÄÕÂÖÐ £¬ÎÒ½«ÏÈÈÝÔõÑùʹÓÃthinkphp×Ô´øµÄ¹¤¾ßɾ³ýÓâÆÚ¹ýʧÈÕÖ¾¼Í¼ £¬´Ó¶øÌá¸ßЧÀÍÆ÷µÄÐÔÄÜ¡£

Ò»¡¢ÏàʶThinkPHPµÄ¹ýʧÈÕÖ¾

ThinkPHP¿ò¼Ü×Ô´ø¹ýʧÈÕÖ¾¼Í¼¹¦Ð§ £¬¿É¼Í¼ÒÔÏÂÀàÐ͵ÄÐÅÏ¢£º

PHP¹ýʧÐÅÏ¢£¨ÈçÓï·¨¹ýʧ¡¢Ö´ÐйýʧµÈ£©¡£

Êý¾Ý¿â¹ýʧÐÅÏ¢£¨ÈçÅþÁ¬¹ýʧ¡¢ÅÌÎʹýʧµÈ£©¡£

Ó¦ÓùýʧÐÅÏ¢£¨Èçδ½ç˵±äÁ¿¡¢²»±£´æµÄÀàµÈ£©¡£

µ±×ðÁú¿­Ê±Ó¦ÓóÌÐòÔËÐзºÆð¹ýʧʱ £¬ÒÔÉÏÀàÐ͵ĹýʧÐÅÏ¢»á±»×Ô¶¯¼Í¼ÔÚÈÕÖ¾ÎļþÖС£ÔÚĬÈÏÇéÐÎÏ £¬ThinkPHP¹ýʧÈÕÖ¾Îļþ´æ´¢ÓÚÏîÄ¿¸ùĿ¼ÏµÄlogsÎļþ¼ÐÖÐ £¬ÎļþÃûΪlog.txt¡£

¶þ¡¢ÕûÀíÓâÆÚ¹ýʧÈÕÖ¾¼Í¼

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡± £»

ÓÉÓÚ³¤Ê±¼äµÄÔËÐÐ £¬¹ýʧÈÕÖ¾Îļþ¿ÉÄÜ»áÕ¼Óôó×Ú´ÅÅÌ¿Õ¼ä £¬¶ÔЧÀÍÆ÷µÄÐÔÄܱ¬·¢µ¹ÔËÓ°Ï졣Ϊ´Ë £¬ÎÒÃÇÐèÒª°´ÆÚÕûÀíÓâÆڵĹýʧÈÕÖ¾¼Í¼ £¬ÒÔ½ÚÔ¼´ÅÅ̿ռ䡣

ThinkPHPÌṩÁËÒ»¸öÏÂÁîÐй¤¾ßthink £¬Í¨¹ý¸Ã¹¤¾ßÎÒÃÇ¿ÉÒÔÀû±ãµØ¾ÙÐÐÕûÀíÊÂÇé¡£Ïêϸ²Ù×÷ÈçÏ£º

½øÈëÏîÄ¿¸ùĿ¼ £¬·­¿ªÖնˡ£

ÊäÈëÒÔÏÂÏÂÁî £¬Éó²éÄ¿½ñ¹ýʧÈÕÖ¾ÎļþµÄ´óС£º

tail -n 1000 logs/log.txt | wc -c

µÇ¼ºó¸´ÖÆ

¸ÃÏÂÁî»áÏÔʾ¹ýʧÈÕÖ¾Îļþ×îºó1000ÐÐÄÚÈݵÄ×Ö½ÚÊý¡£

Ö´ÐÐÒÔÏÂÏÂÁî £¬ÕûÀíÓâÆڵĹýʧÈÕÖ¾¼Í¼£º

php think clear:log {days}

µÇ¼ºó¸´ÖÆ

ÆäÖÐ £¬daysΪÐèÒª±£´æµÄÌìÊý¡£¸ÃÏÂÁî»áÕûÀíµô¹ýʧÈÕÖ¾ÎļþÖÐdaysÌìÒÔÇ°µÄ¼Í¼¡£

×¢£ºÈôÊÇÄúµÄThinkPHP°æ±¾µÍÓÚ5.0 £¬¸ÃÏÂÁîΪphp think clear¡£

ÀýÈç £¬ÈôÊÇÎÒÃÇÏ£Íû±£´æ×î½ü7ÌìµÄ¹ýʧÈÕÖ¾¼Í¼ £¬¿ÉÒÔÖ´ÐÐÒÔÏÂÏÂÁ

php think clear:log 7

µÇ¼ºó¸´ÖÆ

Ö´ÐÐÍêÏÂÁîºó £¬ÔÙ´ÎÊäÈëÏÂÁî1 £¬Éó²é¹ýʧÈÕÖ¾Îļþ¾ÞϸÊÇ·ñÒѼõС¡£

Èý¡¢°´ÆÚÕûÀí¹ýʧÈÕÖ¾¼Í¼

ΪÁË×èÖ¹¹ýʧÈÕÖ¾ÎļþÕ¼Óùý¶à´ÅÅÌ¿Õ¼ä £¬ÎÒÃÇÐèÒª°´ÆÚÕûÀíÓâÆڵĹýʧÈÕÖ¾¼Í¼¡£½¨ÒéÿÖÜÖ´ÐÐÒ»´ÎÕûÀí²Ù×÷¡£

ͬʱ £¬Ò²Ó¦¸ÃÖ»¹ÜïÔÌ­Ó¦ÓóÌÐòÖеĹýʧÂÊ £¬´ÓÔ´Í·ÉϽµµÍ¹ýʧÈÕÖ¾Á¿¡£ÀýÈç £¬ÈÏÕæ±àд´úÂë¡¢¹æ·¶»¯Êý¾Ý¿â²Ù×÷µÈµÈ¡£

×ÜÖ® £¬¹ýʧÈÕÖ¾¼Í¼ÊÇÓ¦ÓóÌÐò¿ª·¢²»¿É»òȱµÄÒ»»· £¬µ«ÕûÀíÓâÆڼͼͬÑùºÜÊÇÖ÷Òª¡£Í¨¹ýÒÔÉϲÙ×÷ £¬ÎÒÃÇ¿ÉÒÔ°´ÆÚÕûÀíÓâÆÚ¹ýʧÈÕÖ¾Îļþ £¬Ìá¸ßЧÀÍÆ÷ÐÔÄÜ £¬°ü¹ÜÓ¦ÓóÌÐòµÄÎȹÌÔËÐС£

ÒÔÉϾÍÊÇthinkphpÔõôɾ³ý¹ýʧÈÕÖ¾¼Í¼µÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿