×ðÁú¿­Ê±¹ÙÍøµÇ¼

thinkphpÔõÑùɨ³ýÈÕÖ¾

Ò»¡¢ÏàʶThinkPHPÈÕÖ¾

ÔÚʹÓÃThinkPHPÀú³ÌÖУ¬»á±¬·¢ÒÔÏÂÁ½ÖÖÀàÐ͵ÄÈÕÖ¾£º

1.ϵͳÈÕÖ¾£º´æ·ÅÔÚruntimeĿ¼ÏµÄlogÎļþ¼ÐÄÚÀ°üÀ¨ÇëÇóÈÕÖ¾¡¢Òì³£ÈÕÖ¾µÈ¡£

2.SQLÈÕÖ¾£º´æ·ÅÔÚruntimeĿ¼ÏµÄsqlÎļþ¼ÐÄÚÀ¼Í¼ÁËSQLÖ´ÐеÄÏêϸÐÅÏ¢¡£

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

¶þ¡¢É¨³ýThinkPHPÈÕÖ¾

ɨ³ýThinkPHPÈÕÖ¾¿ÉÒÔͨ¹ýÒÔÏÂÁ½ÖÖ·½·¨¾ÙÐУº

1.ÊÖ¶¯É¨³ýÈÕÖ¾

ÊÖ¶¯É¨³ýÈÕÖ¾½ÏÁ¿¼òÆÓÒ׶®£¬Ö»ÐèÒªÕÒµ½runtimeĿ¼ÏµÄlogºÍsqlÎļþ¼Ð£¬Ö±½Ó½«Îļþ¼ÐÄÚµÄËùÓÐÎļþɾ³ý¼´¿É¡£

2.ÉèÖð´ÆÚÕûÀí

ÊÖ¶¯ÕûÀíÈÕÖ¾ËäÈ»¼òÆÓ£¬¿ÉÊÇÐèÒª°´ÆÚÖ´ÐУ¬²»È»ÈÕÖ¾ÎļþÒÀ¾É»áÕ¼ÓÃÒ»¶¨µÄ´ÅÅ̿ռ䡣Òò´Ë£¬ÎÒÃÇ¿ÉÒÔÔÚThinkPHPµÄÉèÖÃÎļþconfig.phpÖÐÉèÖð´ÆÚÕûÀí¡£ÒÔÌìÌìÕûÀíÒ»Ô½ÈÕ־ΪÀý£¬ÎÒÃÇ¿ÉÒÔÔÚconfig.phpÖÐÌí¼ÓÒÔÏ´úÂ룺

// ׼ʱÕûÀíÈÕÖ¾Îļþ
'log' => [
    // ÈÕÖ¾¼Í¼·½·¨£¬Ö§³Ö file sae
    'type' => 'file',
    // ÈÕÖ¾ÉúÑÄĿ¼
    'path' => LOG_PATH,
    // ÈÕÖ¾¼Í¼¼¶±ð
    'level' => [],
    // ÈÕ־ɨ³ýʱ¼ä£¬µ¥Î»£ºÌì
    'clear_time' => 1,
],

µÇ¼ºó¸´ÖÆ

ÉÏÊö´úÂ뽫ÈÕÖ¾µÄɨ³ýʱ¼äÉèÖÃΪ1Ì죬¼´ÌìÌìÕûÀíÒ»Ô½ÈÕÖ¾¡£ÈôÊÇÐèÒªÉèÖÃÆäËûʱ¼ä£¬Ö»ÐèÒª½«clear_timeµÄÖµÐ޸ļ´¿É¡£

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

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

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

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

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

QR code
ÍøÕ¾µØͼ