久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='RzmAL'><tr id='RzmAL'><dt id='RzmAL'><q id='RzmAL'><span id='RzmAL'><b id='RzmAL'><form id='RzmAL'><ins id='RzmAL'></ins><ul id='RzmAL'></ul><sub id='RzmAL'></sub></form><legend id='RzmAL'></legend><bdo id='RzmAL'><pre id='RzmAL'><center id='RzmAL'></center></pre></bdo></b><th id='RzmAL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RzmAL'><tfoot id='RzmAL'></tfoot><dl id='RzmAL'><fieldset id='RzmAL'></fieldset></dl></div>
  • <legend id='RzmAL'><style id='RzmAL'><dir id='RzmAL'><q id='RzmAL'></q></dir></style></legend>
    <tfoot id='RzmAL'></tfoot>
  • <small id='RzmAL'></small><noframes id='RzmAL'>

    • <bdo id='RzmAL'></bdo><ul id='RzmAL'></ul>

        Zend_Log in application.ini

        Zend_Log in application.ini(Zend_Log in application.ini)
      1. <i id='7cGNn'><tr id='7cGNn'><dt id='7cGNn'><q id='7cGNn'><span id='7cGNn'><b id='7cGNn'><form id='7cGNn'><ins id='7cGNn'></ins><ul id='7cGNn'></ul><sub id='7cGNn'></sub></form><legend id='7cGNn'></legend><bdo id='7cGNn'><pre id='7cGNn'><center id='7cGNn'></center></pre></bdo></b><th id='7cGNn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7cGNn'><tfoot id='7cGNn'></tfoot><dl id='7cGNn'><fieldset id='7cGNn'></fieldset></dl></div>
        • <tfoot id='7cGNn'></tfoot>
              <tbody id='7cGNn'></tbody>
              <bdo id='7cGNn'></bdo><ul id='7cGNn'></ul>

                <small id='7cGNn'></small><noframes id='7cGNn'>

                <legend id='7cGNn'><style id='7cGNn'><dir id='7cGNn'><q id='7cGNn'></q></dir></style></legend>
                  本文介紹了Zend_Log in application.ini的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  是否有任何示例如何從 application.ini 設(shè)置 Zend 日志的實(shí)例?我只找到了一個(gè)記錄到文件的示例,但我想登錄到 SQLITE 數(shù)據(jù)庫表?

                  is there any example how to setup an instance of zend log from application.ini? I have only found an example for logging to an file, but i want to log into an SQLITE database table?

                  Zend 日志資源

                  推薦答案

                  好問題.我找不到從引導(dǎo)程序配置實(shí)例化 Zend_Log_Writer_Db 的方法.writer 類需要一個(gè) Zend_Db_Adapter 對(duì)象.它不接受字符串.

                  Good question. I can't find a way to instantiate the Zend_Log_Writer_Db from a bootstrap config. The writer class requires a Zend_Db_Adapter object. It doesn't accept a string.

                  采埃孚項(xiàng)目需要進(jìn)一步開發(fā)這個(gè)用例.他們甚至沒有任何包含數(shù)據(jù)庫編寫器的 Zend_Application_Resource_Log 單元測(cè)試.

                  The ZF project needs to develop this use case further. They don't even have any unit tests for Zend_Application_Resource_Log that include a Db writer.

                  在那之前我最好的建議是,您的 Bootstrap 類需要在 _initLog() 方法中自定義 Log 資源.

                  The best I can suggest until then is that you Bootstrap class needs to customize the Log resource in an _initLog() method.

                  class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
                  {
                  
                    protected function _initDb()
                    {
                      if ($this->hasPluginResource("db")) {
                        $r = $this->getPluginResource("db");
                        $db = $r->getDbAdapter();
                        Zend_Registry::set("db", $db);
                      }
                    }
                  
                    protected function _initLog()
                    {
                      if ($this->hasPluginResource("log")) {
                        $r = $this->getPluginResource("log");
                        $log = $r->getLog();
                  
                        $db = Zend_Registry::get("db");
                        $writer = new Zend_Log_Writer($db, "log", ...columnMap...);
                        $log->addWriter($writer);
                  
                        Zend_Registry::set("log", $log);
                      }
                    }
                  
                  }
                  

                  這篇關(guān)于Zend_Log in application.ini的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)

                    <small id='bQcTh'></small><noframes id='bQcTh'>

                      <tbody id='bQcTh'></tbody>
                    • <i id='bQcTh'><tr id='bQcTh'><dt id='bQcTh'><q id='bQcTh'><span id='bQcTh'><b id='bQcTh'><form id='bQcTh'><ins id='bQcTh'></ins><ul id='bQcTh'></ul><sub id='bQcTh'></sub></form><legend id='bQcTh'></legend><bdo id='bQcTh'><pre id='bQcTh'><center id='bQcTh'></center></pre></bdo></b><th id='bQcTh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bQcTh'><tfoot id='bQcTh'></tfoot><dl id='bQcTh'><fieldset id='bQcTh'></fieldset></dl></div>

                      <tfoot id='bQcTh'></tfoot>
                      <legend id='bQcTh'><style id='bQcTh'><dir id='bQcTh'><q id='bQcTh'></q></dir></style></legend>
                        <bdo id='bQcTh'></bdo><ul id='bQcTh'></ul>

                          1. 主站蜘蛛池模板: 毛片1 | 欧美不卡一区二区三区 | 久久综合一区 | 黄色91在线| 国产一区二区黑人欧美xxxx | 在线欧美小视频 | 不卡视频在线 | 国产精品视频免费观看 | 性色av香蕉一区二区 | 欧美午夜精品久久久久免费视 | 99爱免费| 日本激情视频在线播放 | 欧美成年人视频在线观看 | 国产在线视频一区二区 | 国产欧美精品一区二区三区 | 国产成人网 | 亚洲国产成人精品久久久国产成人一区 | 精品国产一区二区 | yeyeav| 国产精品一区在线观看 | 在线视频中文字幕 | 日韩中文字幕视频 | 极品久久 | 国产激情视频网址 | 亚洲国产精品一区二区三区 | 国产亚洲一区二区三区在线 | 亚洲免费一区二区 | 春色av| 欧美激情一区二区 | 国产视频福利一区 | 日韩一区二区三区精品 | 久草欧美视频 | 欧美成人专区 | 日韩三级 | 亚洲天堂精品一区 | 精产国产伦理一二三区 | 伊色综合久久之综合久久 | 久久久久久久久淑女av国产精品 | 99精品欧美一区二区三区综合在线 | 日韩精品视频在线 | 国产一区二区免费在线 |