<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          RLogC++日志程序庫

          聯(lián)合創(chuàng)作 · 2023-09-30 00:46

          RLog是一個靈活的C++日志程序庫。RLog高度優(yōu)化了不用實際輸出Log信息的分支,因此RLog可以留在發(fā)布產(chǎn)品中,并可以按需開啟輸出。

          示例代碼:

          // create custom logging channel (part of debug hierarchy)
          // Any subscriber to 'debug' will also pick up this sub channel,
          // or it can be subscribed to directly.
          static RLogChannel *timeChannel = DEF_CHANNEL("debug/timeStamp", Log_Debug);
          
          void func(int foo)
          {
              // log to the 'debug' channel
              rDebug("foo = %i", foo);
              int ans = 6 * 9;
              if(ans != 42)
                  rWarning("ans = %i, expecting 42", ans); // log to warning channel
              // log to error channel
              rError("I'm sorry %s, I can't do that (error code %i)", name, errno);
          
              // log to custom channel
              // Note: time() never gets called unless there are subscribers to this message
              rLog(timeChannel, "the time is now %i", (int)time(NULL));
          }
          瀏覽 24
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  免费日本黄色网址 | 九一成人电影。 | 色哟哟精品 | 日本xxxx性爱视频图片 | 亚洲伊人在线 |