<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>8.3.18. log_reopen — groonga v3.0.5 documentation</title> <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '3.0.5', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <link rel="shortcut icon" href="../../_static/favicon.ico"/> <link rel="top" title="groonga v3.0.5 documentation" href="../../index.html" /> <link rel="up" title="8.3. Command" href="../command.html" /> <link rel="next" title="8.3.19. normalize" href="normalize.html" /> <link rel="prev" title="8.3.17. log_put" href="log_put.html" /> </head> <body> <div class="header"> <h1 class="title"> <a id="top-link" href="../../index.html"> <span class="project">groonga</span> <span class="separator">-</span> <span class="description">An open-source fulltext search engine and column store.</span> </a> </h1> <div class="other-language-links"> <ul> <li><a href="../../../../ja/html/reference/commands/log_reopen.html"><img src="../../_static/jp.png" alt="日本語">日本語版はこちら</a></li> </ul> </div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="normalize.html" title="8.3.19. normalize" accesskey="N">next</a> |</li> <li class="right" > <a href="log_put.html" title="8.3.17. log_put" accesskey="P">previous</a> |</li> <li><a href="../../index.html">groonga v3.0.5 documentation</a> »</li> <li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li> <li><a href="../command.html" accesskey="U">8.3. Command</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="log-reopen"> <h1>8.3.18. log_reopen<a class="headerlink" href="#log-reopen" title="Permalink to this headline">¶</a></h1> <div class="section" id="id1"> <h2>8.3.18.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2> <p>log_reopen - ログファイルの再読み込み</p> </div> <div class="section" id="id2"> <h2>8.3.18.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2> <div class="highlight-none"><div class="highlight"><pre>log_reopen </pre></div> </div> </div> <div class="section" id="id3"> <h2>8.3.18.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2> <p>groonga組込コマンドの一つであるlog_reopenについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p> <p>log_reopenは、ログファイルを再読み込みします。</p> <p>現在、デフォルトのログ関数を用いている場合のみに対応しています。</p> </div> <div class="section" id="id4"> <h2>8.3.18.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2> <p>ありません。</p> </div> <div class="section" id="id5"> <h2>8.3.18.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2> <div class="section" id="json"> <h3>8.3.18.5.1. json形式<a class="headerlink" href="#json" title="Permalink to this headline">¶</a></h3> <div class="highlight-none"><div class="highlight"><pre>[成功かどうかのフラグ] </pre></div> </div> <p><tt class="docutils literal"><span class="pre">成功かどうかのフラグ</span></tt></p> <blockquote> <div>エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。</div></blockquote> </div> </div> <div class="section" id="id6"> <h2>8.3.18.6. 例<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2> <div class="highlight-none"><div class="highlight"><pre>log_reopen [true] </pre></div> </div> </div> <div class="section" id="id7"> <h2>8.3.18.7. log_reopenを用いたログのローテーション<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2> <ol class="arabic simple"> <li>ログファイルをmvなどで移動する。 ログはmvで移動された先のファイルに書き込まれる。</li> <li>log_reopenコマンドを実行する。</li> <li>既存のログファイル名と同じファイル名で、新たなログファイルが作成される。 今後のログは新たなログファイルに書き込まれる。</li> </ol> </div> <div class="section" id="id8"> <h2>8.3.18.8. 関連項目<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2> <p><a class="reference internal" href="log_level.html"><em>log_level</em></a> <a class="reference internal" href="log_put.html"><em>log_put</em></a></p> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">8.3.18. log_reopen</a><ul> <li><a class="reference internal" href="#id1">8.3.18.1. 名前</a></li> <li><a class="reference internal" href="#id2">8.3.18.2. 書式</a></li> <li><a class="reference internal" href="#id3">8.3.18.3. 説明</a></li> <li><a class="reference internal" href="#id4">8.3.18.4. 引数</a></li> <li><a class="reference internal" href="#id5">8.3.18.5. 返値</a><ul> <li><a class="reference internal" href="#json">8.3.18.5.1. json形式</a></li> </ul> </li> <li><a class="reference internal" href="#id6">8.3.18.6. 例</a></li> <li><a class="reference internal" href="#id7">8.3.18.7. log_reopenを用いたログのローテーション</a></li> <li><a class="reference internal" href="#id8">8.3.18.8. 関連項目</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="log_put.html" title="previous chapter">8.3.17. log_put</a></p> <h4>Next topic</h4> <p class="topless"><a href="normalize.html" title="next chapter">8.3.19. <tt class="docutils literal"><span class="pre">normalize</span></tt></a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/reference/commands/log_reopen.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="normalize.html" title="8.3.19. normalize" >next</a> |</li> <li class="right" > <a href="log_put.html" title="8.3.17. log_put" >previous</a> |</li> <li><a href="../../index.html">groonga v3.0.5 documentation</a> »</li> <li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li> <li><a href="../command.html" >8.3. Command</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2013, Brazil, Inc. </div> </body> </html>