blob: fc12d17273e30e62a5881b84764fe63cbcb5f538 [file] [log] [blame]
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Apache Mesos: src/slave/container_loggers/lib_logrotate.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Apache Mesos
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80f0d4a0945c74dfa611dba2ec326a39.html">slave</a></li><li class="navelem"><a class="el" href="dir_579d88c8b070a2c745ef26d9577007a4.html">container_loggers</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">lib_logrotate.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="lib__logrotate_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// distributed with this work for additional information</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">// with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// limitations under the License.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef __SLAVE_CONTAINER_LOGGER_LIB_LOGROTATE_HPP__</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __SLAVE_CONTAINER_LOGGER_LIB_LOGROTATE_HPP__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="slave_2container__logger_8hpp.html">mesos/slave/container_logger.hpp</a>&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="include_2mesos_2slave_2containerizer_8hpp.html">mesos/slave/containerizer.hpp</a>&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="bytes_8hpp.html">stout/bytes.hpp</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2flags_8hpp.html">stout/flags.hpp</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="option_8hpp.html">stout/option.hpp</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="exists_8hpp.html">stout/os/exists.hpp</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="pagesize_8hpp.html">stout/os/pagesize.hpp</a>&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="shell_8hpp.html">stout/os/shell.hpp</a>&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="logrotate_8hpp.html">slave/container_loggers/logrotate.hpp</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span>mesos {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1logger.html"> 37</a></span>&#160;<span class="keyword">namespace </span>logger {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">// Forward declaration.</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">class </span>LogrotateContainerLoggerProcess;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">// These flags are loaded twice: once when the `ContainerLogger` module</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment">// is created and each time before launching executors. The flags loaded</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">// at module creation act as global default values, whereas flags loaded</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment">// prior to executors can override the global values.</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html"> 47</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html">LoggerFlags</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classflags_1_1FlagsBase.html">flags::FlagsBase</a></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;{</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a1652e5364feb93134ce12474b77e4bbc"> 49</a></span>&#160; <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a1652e5364feb93134ce12474b77e4bbc">LoggerFlags</a>()</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a01e0b855bccba47e5e8cf51923c043dd">LoggerFlags::max_stdout_size</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="stringliteral">&quot;max_stdout_size&quot;</span>,</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="stringliteral">&quot;Maximum size, in bytes, of a single stdout log file.\n&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="stringliteral">&quot;Defaults to 10 MB. Must be at least 1 (memory) page.&quot;</span>,</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="classMegabytes.html">Megabytes</a>(10),</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; &amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a6f16e6c1a4ea3d53a938706f9d215fdf">LoggerFlags::validateSize</a>);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a701cd92419a47af88b8b3e69596dc9fe">LoggerFlags::logrotate_stdout_options</a>,</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="stringliteral">&quot;logrotate_stdout_options&quot;</span>,</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="stringliteral">&quot;Additional config options to pass into &#39;logrotate&#39; for stdout.\n&quot;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="stringliteral">&quot;This string will be inserted into a &#39;logrotate&#39; configuration file.\n&quot;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="stringliteral">&quot;i.e.\n&quot;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="stringliteral">&quot; /path/to/stdout {\n&quot;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="stringliteral">&quot; &lt;logrotate_stdout_options&gt;\n&quot;</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="stringliteral">&quot; size &lt;max_stdout_size&gt;\n&quot;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="stringliteral">&quot;NOTE: The &#39;size&#39; option will be overridden by this module.&quot;</span>);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a324f6d7bd9a854fb74465d84cbfffd46">LoggerFlags::max_stderr_size</a>,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="stringliteral">&quot;max_stderr_size&quot;</span>,</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="stringliteral">&quot;Maximum size, in bytes, of a single stderr log file.\n&quot;</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="stringliteral">&quot;Defaults to 10 MB. Must be at least 1 (memory) page.&quot;</span>,</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classMegabytes.html">Megabytes</a>(10),</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; &amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a6f16e6c1a4ea3d53a938706f9d215fdf">LoggerFlags::validateSize</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a07b215b9a9fb3a2fae1671574314e2d2">LoggerFlags::logrotate_stderr_options</a>,</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="stringliteral">&quot;logrotate_stderr_options&quot;</span>,</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="stringliteral">&quot;Additional config options to pass into &#39;logrotate&#39; for stderr.\n&quot;</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="stringliteral">&quot;This string will be inserted into a &#39;logrotate&#39; configuration file.\n&quot;</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="stringliteral">&quot;i.e.\n&quot;</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="stringliteral">&quot; /path/to/stderr {\n&quot;</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="stringliteral">&quot; &lt;logrotate_stderr_options&gt;\n&quot;</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="stringliteral">&quot; size &lt;max_stderr_size&gt;\n&quot;</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="stringliteral">&quot; }\n&quot;</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="stringliteral">&quot;NOTE: The &#39;size&#39; option will be overridden by this module.&quot;</span>);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a6f16e6c1a4ea3d53a938706f9d215fdf"> 88</a></span>&#160; <span class="keyword">static</span> <a class="code" href="classOption.html">Option&lt;Error&gt;</a> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a6f16e6c1a4ea3d53a938706f9d215fdf">validateSize</a>(<span class="keyword">const</span> <a class="code" href="classBytes.html">Bytes</a>&amp; value)</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">if</span> (value.<a class="code" href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">bytes</a>() &lt; <a class="code" href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a>()) {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="stringliteral">&quot;Expected --max_stdout_size and --max_stderr_size of &quot;</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="stringliteral">&quot;at least &quot;</span> + <a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(<a class="code" href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a>()) + <span class="stringliteral">&quot; bytes&quot;</span>);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a01e0b855bccba47e5e8cf51923c043dd"> 99</a></span>&#160; <a class="code" href="classBytes.html">Bytes</a> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a01e0b855bccba47e5e8cf51923c043dd">max_stdout_size</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a701cd92419a47af88b8b3e69596dc9fe"> 100</a></span>&#160; <a class="code" href="classOption.html">Option&lt;std::string&gt;</a> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a701cd92419a47af88b8b3e69596dc9fe">logrotate_stdout_options</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a324f6d7bd9a854fb74465d84cbfffd46"> 102</a></span>&#160; <a class="code" href="classBytes.html">Bytes</a> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a324f6d7bd9a854fb74465d84cbfffd46">max_stderr_size</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a07b215b9a9fb3a2fae1671574314e2d2"> 103</a></span>&#160; <a class="code" href="classOption.html">Option&lt;std::string&gt;</a> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a07b215b9a9fb3a2fae1671574314e2d2">logrotate_stderr_options</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;};</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html"> 107</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html">Flags</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html">LoggerFlags</a></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;{</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html#afe7186ad5e403a2afd95cf7021f4d195"> 109</a></span>&#160; <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#afe7186ad5e403a2afd95cf7021f4d195">Flags</a>()</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a4a5d15a242a55783cf676b2fa799e360">Flags::environment_variable_prefix</a>,</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="stringliteral">&quot;environment_variable_prefix&quot;</span>,</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="stringliteral">&quot;Prefix for environment variables meant to modify the behavior of\n&quot;</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="stringliteral">&quot;the logrotate logger for the specific executor being launched.\n&quot;</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="stringliteral">&quot;The logger will look for four prefixed environment variables in the\n&quot;</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="stringliteral">&quot;&#39;ExecutorInfo&#39;s &#39;CommandInfo&#39;s &#39;Environment&#39;:\n&quot;</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="stringliteral">&quot; * MAX_STDOUT_SIZE\n&quot;</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="stringliteral">&quot; * LOGROTATE_STDOUT_OPTIONS\n&quot;</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="stringliteral">&quot; * MAX_STDERR_SIZE\n&quot;</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="stringliteral">&quot; * LOGROTATE_STDERR_OPTIONS\n&quot;</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="stringliteral">&quot;If present, these variables will overwrite the global values set\n&quot;</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="stringliteral">&quot;via module parameters.&quot;</span>,</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="stringliteral">&quot;CONTAINER_LOGGER_&quot;</span>);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a68a07a76e5b8842c754852a424d12525">Flags::launcher_dir</a>,</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="stringliteral">&quot;launcher_dir&quot;</span>,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="stringliteral">&quot;Directory path of Mesos binaries. The logrotate container logger\n&quot;</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="stringliteral">&quot;will find the &#39;&quot;</span> + <a class="code" href="namespacemesos_1_1internal_1_1logger_1_1rotate.html#aee5dc359a1b6d22c5d912b166c895854">mesos::internal::logger::rotate::NAME</a> + <span class="stringliteral">&quot;&#39;\n&quot;</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="stringliteral">&quot;binary file under this directory.&quot;</span>,</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; PKGLIBEXECDIR,</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; [](<span class="keyword">const</span> std::string&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; std::string executablePath =</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <a class="code" href="namespacepath.html#aa86b16a2171cec90bb3337930513ef0f">path::join</a>(value, <a class="code" href="namespacemesos_1_1internal_1_1logger_1_1rotate.html#aee5dc359a1b6d22c5d912b166c895854">mesos::internal::logger::rotate::NAME</a>);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="namespaceos.html#a69b3969276ffa4cb698b9431ee43bd7c">os::exists</a>(executablePath)) {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">&quot;Cannot find: &quot;</span> + executablePath);</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; });</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#abd0de016d5754244dccafb3d0311bf1c">Flags::logrotate_path</a>,</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="stringliteral">&quot;logrotate_path&quot;</span>,</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="stringliteral">&quot;If specified, the logrotate container logger will use the specified\n&quot;</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="stringliteral">&quot;&#39;logrotate&#39; instead of the system&#39;s &#39;logrotate&#39;.&quot;</span>,</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="stringliteral">&quot;logrotate&quot;</span>,</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; [](<span class="keyword">const</span> std::string&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="comment">// Check if `logrotate` exists via the help command.</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// TODO(josephw): Consider a more comprehensive check.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="classTry.html">Try&lt;std::string&gt;</a> helpCommand =</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="code" href="namespaceos.html#a0d86320d7799ea761599bc356c02a4fa">os::shell</a>(value + <span class="stringliteral">&quot; --help &gt; /dev/null&quot;</span>);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">if</span> (helpCommand.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="stringliteral">&quot;Failed to check logrotate: &quot;</span> + helpCommand.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; }</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; });</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">add</a>(&amp;<a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a70d12161362a3aa5da5a5ea0f55a7142">Flags::libprocess_num_worker_threads</a>,</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="stringliteral">&quot;libprocess_num_worker_threads&quot;</span>,</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="stringliteral">&quot;Number of Libprocess worker threads.\n&quot;</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="stringliteral">&quot;Defaults to 8. Must be at least 1.&quot;</span>,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; 8u,</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; [](<span class="keyword">const</span> <span class="keywordtype">size_t</span>&amp; value) -&gt; <a class="code" href="classOption.html">Option&lt;Error&gt;</a> {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">if</span> (value &lt; 1u) {</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="stringliteral">&quot;Expected --libprocess_num_worker_threads of at least 1&quot;</span>);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; }</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; });</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a4a5d15a242a55783cf676b2fa799e360"> 176</a></span>&#160; std::string <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a4a5d15a242a55783cf676b2fa799e360">environment_variable_prefix</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a68a07a76e5b8842c754852a424d12525"> 178</a></span>&#160; std::string <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a68a07a76e5b8842c754852a424d12525">launcher_dir</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html#abd0de016d5754244dccafb3d0311bf1c"> 179</a></span>&#160; std::string <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#abd0de016d5754244dccafb3d0311bf1c">logrotate_path</a>;</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a70d12161362a3aa5da5a5ea0f55a7142"> 181</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html#a70d12161362a3aa5da5a5ea0f55a7142">libprocess_num_worker_threads</a>;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;};</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<span class="comment">// The `LogrotateContainerLogger` is a container logger that utilizes the</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<span class="comment">// `logrotate` utility to strictly constrain total size of a container&#39;s</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;<span class="comment">// stdout and stderr log files. All `logrotate` configuration options</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="comment">// (besides `size`, which this module uses) are supported. See `Flags` above.</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html"> 189</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html">LogrotateContainerLogger</a> : <span class="keyword">public</span> <a class="code" href="classmesos_1_1slave_1_1ContainerLogger.html">mesos::slave::ContainerLogger</a></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;{</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a4077f79b44f530e4dd15706a2e2cc26d">LogrotateContainerLogger</a>(<span class="keyword">const</span> <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html">Flags</a>&amp; _flags);</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a1dfd4048a4b105e28c3dff7847eb0d0a">~LogrotateContainerLogger</a>();</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="comment">// This is a noop. The logrotate container logger has nothing to initialize.</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classTry.html">Try&lt;Nothing&gt;</a> <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a97d46cccc5db6ac73713f91901008dbb">initialize</a>();</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">process::Future&lt;mesos::slave::ContainerIO&gt;</a> <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a9c4ae73855054894da085dba0d037ffe">prepare</a>(</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keyword">const</span> ExecutorInfo&amp; executorInfo,</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keyword">const</span> std::string&amp; sandboxDirectory,</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keyword">const</span> <a class="code" href="classOption.html">Option&lt;std::string&gt;</a>&amp; <a class="code" href="namespaceos.html#a698aa27e5ea6b1dc1c190b978c2f7960">user</a>);</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a9efe3b3bece6d7d2c43e8b6234df060d"> 205</a></span>&#160; <a class="code" href="structmesos_1_1internal_1_1logger_1_1Flags.html">Flags</a> <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a9efe3b3bece6d7d2c43e8b6234df060d">flags</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#abb34cdfbdc44341018b34fcd96db68fd"> 206</a></span>&#160; <a class="code" href="classprocess_1_1Owned.html">process::Owned&lt;LogrotateContainerLoggerProcess&gt;</a> <a class="code" href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#abb34cdfbdc44341018b34fcd96db68fd">process</a>;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;};</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;} <span class="comment">// namespace logger {</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;} <span class="comment">// namespace internal {</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;} <span class="comment">// namespace mesos {</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;<span class="preprocessor">#endif // __SLAVE_CONTAINER_LOGGER_LIB_LOGROTATE_HPP__</span></div>
<div class="ttc" id="namespaceos_html_a69b3969276ffa4cb698b9431ee43bd7c"><div class="ttname"><a href="namespaceos.html#a69b3969276ffa4cb698b9431ee43bd7c">os::exists</a></div><div class="ttdeci">bool exists(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> exists.hpp:26</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_a4077f79b44f530e4dd15706a2e2cc26d"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a4077f79b44f530e4dd15706a2e2cc26d">mesos::internal::logger::LogrotateContainerLogger::LogrotateContainerLogger</a></div><div class="ttdeci">LogrotateContainerLogger(const Flags &amp;_flags)</div></div>
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div>
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option&lt; Error &gt;</a></div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a6f16e6c1a4ea3d53a938706f9d215fdf"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a6f16e6c1a4ea3d53a938706f9d215fdf">mesos::internal::logger::LoggerFlags::validateSize</a></div><div class="ttdeci">static Option&lt; Error &gt; validateSize(const Bytes &amp;value)</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:88</div></div>
<div class="ttc" id="exists_8hpp_html"><div class="ttname"><a href="exists_8hpp.html">exists.hpp</a></div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html_abd0de016d5754244dccafb3d0311bf1c"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html#abd0de016d5754244dccafb3d0311bf1c">mesos::internal::logger::Flags::logrotate_path</a></div><div class="ttdeci">std::string logrotate_path</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:179</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_a97d46cccc5db6ac73713f91901008dbb"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a97d46cccc5db6ac73713f91901008dbb">mesos::internal::logger::LogrotateContainerLogger::initialize</a></div><div class="ttdeci">virtual Try&lt; Nothing &gt; initialize()</div><div class="ttdoc">Initializes this container logger. </div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html">mesos::internal::logger::LogrotateContainerLogger</a></div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:189</div></div>
<div class="ttc" id="namespaceos_html_af0898f40a19c3804347e30b9efa0984a"><div class="ttname"><a href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a></div><div class="ttdeci">size_t pagesize()</div><div class="ttdef"><b>Definition:</b> pagesize.hpp:24</div></div>
<div class="ttc" id="namespaceos_html_a698aa27e5ea6b1dc1c190b978c2f7960"><div class="ttname"><a href="namespaceos.html#a698aa27e5ea6b1dc1c190b978c2f7960">os::user</a></div><div class="ttdeci">Result&lt; std::string &gt; user(Option&lt; uid_t &gt; uid=None())</div><div class="ttdef"><b>Definition:</b> su.hpp:277</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1logger_1_1rotate_html_aee5dc359a1b6d22c5d912b166c895854"><div class="ttname"><a href="namespacemesos_1_1internal_1_1logger_1_1rotate.html#aee5dc359a1b6d22c5d912b166c895854">mesos::internal::logger::rotate::NAME</a></div><div class="ttdeci">const std::string NAME</div><div class="ttdef"><b>Definition:</b> logrotate.hpp:37</div></div>
<div class="ttc" id="namespacepath_html_aa86b16a2171cec90bb3337930513ef0f"><div class="ttname"><a href="namespacepath.html#aa86b16a2171cec90bb3337930513ef0f">path::join</a></div><div class="ttdeci">std::string join(const std::string &amp;path1, const std::string &amp;path2, const char _separator=os::PATH_SEPARATOR)</div><div class="ttdef"><b>Definition:</b> path.hpp:29</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_a1dfd4048a4b105e28c3dff7847eb0d0a"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a1dfd4048a4b105e28c3dff7847eb0d0a">mesos::internal::logger::LogrotateContainerLogger::~LogrotateContainerLogger</a></div><div class="ttdeci">virtual ~LogrotateContainerLogger()</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html_a70d12161362a3aa5da5a5ea0f55a7142"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html#a70d12161362a3aa5da5a5ea0f55a7142">mesos::internal::logger::Flags::libprocess_num_worker_threads</a></div><div class="ttdeci">size_t libprocess_num_worker_threads</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:181</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a07b215b9a9fb3a2fae1671574314e2d2"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a07b215b9a9fb3a2fae1671574314e2d2">mesos::internal::logger::LoggerFlags::logrotate_stderr_options</a></div><div class="ttdeci">Option&lt; std::string &gt; logrotate_stderr_options</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:103</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_abb34cdfbdc44341018b34fcd96db68fd"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#abb34cdfbdc44341018b34fcd96db68fd">mesos::internal::logger::LogrotateContainerLogger::process</a></div><div class="ttdeci">process::Owned&lt; LogrotateContainerLoggerProcess &gt; process</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:206</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_a9c4ae73855054894da085dba0d037ffe"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a9c4ae73855054894da085dba0d037ffe">mesos::internal::logger::LogrotateContainerLogger::prepare</a></div><div class="ttdeci">virtual process::Future&lt; mesos::slave::ContainerIO &gt; prepare(const ExecutorInfo &amp;executorInfo, const std::string &amp;sandboxDirectory, const Option&lt; std::string &gt; &amp;user)</div><div class="ttdoc">Called before Mesos creates a container. </div></div>
<div class="ttc" id="bytes_8hpp_html"><div class="ttname"><a href="bytes_8hpp.html">bytes.hpp</a></div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a01e0b855bccba47e5e8cf51923c043dd"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a01e0b855bccba47e5e8cf51923c043dd">mesos::internal::logger::LoggerFlags::max_stdout_size</a></div><div class="ttdeci">Bytes max_stdout_size</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:99</div></div>
<div class="ttc" id="classMegabytes_html"><div class="ttname"><a href="classMegabytes.html">Megabytes</a></div><div class="ttdef"><b>Definition:</b> bytes.hpp:131</div></div>
<div class="ttc" id="slave_2container__logger_8hpp_html"><div class="ttname"><a href="slave_2container__logger_8hpp.html">container_logger.hpp</a></div></div>
<div class="ttc" id="classflags_1_1FlagsBase_html"><div class="ttname"><a href="classflags_1_1FlagsBase.html">flags::FlagsBase</a></div><div class="ttdef"><b>Definition:</b> flags.hpp:44</div></div>
<div class="ttc" id="include_2mesos_2slave_2containerizer_8hpp_html"><div class="ttname"><a href="include_2mesos_2slave_2containerizer_8hpp.html">containerizer.hpp</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2flags_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2flags_8hpp.html">flags.hpp</a></div></div>
<div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></div></div>
<div class="ttc" id="classTry_html_aec4a11ddd3c036e889d90b7eb6258ba7"><div class="ttname"><a href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">Try::error</a></div><div class="ttdeci">static Try error(const E &amp;e)</div><div class="ttdef"><b>Definition:</b> try.hpp:42</div></div>
<div class="ttc" id="pagesize_8hpp_html"><div class="ttname"><a href="pagesize_8hpp.html">pagesize.hpp</a></div></div>
<div class="ttc" id="namespaceos_html_a0d86320d7799ea761599bc356c02a4fa"><div class="ttname"><a href="namespaceos.html#a0d86320d7799ea761599bc356c02a4fa">os::shell</a></div><div class="ttdeci">Try&lt; std::string &gt; shell(const std::string &amp;fmt, const T &amp;...t)</div><div class="ttdoc">Runs a shell command with optional arguments. </div><div class="ttdef"><b>Definition:</b> shell.hpp:71</div></div>
<div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div>
<div class="ttc" id="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a1652e5364feb93134ce12474b77e4bbc"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a1652e5364feb93134ce12474b77e4bbc">mesos::internal::logger::LoggerFlags::LoggerFlags</a></div><div class="ttdeci">LoggerFlags()</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:49</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html_afe7186ad5e403a2afd95cf7021f4d195"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html#afe7186ad5e403a2afd95cf7021f4d195">mesos::internal::logger::Flags::Flags</a></div><div class="ttdeci">Flags()</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:109</div></div>
<div class="ttc" id="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger_html_a9efe3b3bece6d7d2c43e8b6234df060d"><div class="ttname"><a href="classmesos_1_1internal_1_1logger_1_1LogrotateContainerLogger.html#a9efe3b3bece6d7d2c43e8b6234df060d">mesos::internal::logger::LogrotateContainerLogger::flags</a></div><div class="ttdeci">Flags flags</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:205</div></div>
<div class="ttc" id="classBytes_html_a1a2e9277ebe7d227a21f111898c49a8c"><div class="ttname"><a href="classBytes.html#a1a2e9277ebe7d227a21f111898c49a8c">Bytes::bytes</a></div><div class="ttdeci">uint64_t bytes() const </div><div class="ttdef"><b>Definition:</b> bytes.hpp:75</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a701cd92419a47af88b8b3e69596dc9fe"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a701cd92419a47af88b8b3e69596dc9fe">mesos::internal::logger::LoggerFlags::logrotate_stdout_options</a></div><div class="ttdeci">Option&lt; std::string &gt; logrotate_stdout_options</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:100</div></div>
<div class="ttc" id="classflags_1_1FlagsBase_html_a09ebe840242a3b0fbd3263bb6c7ca226"><div class="ttname"><a href="classflags_1_1FlagsBase.html#a09ebe840242a3b0fbd3263bb6c7ca226">flags::FlagsBase::add</a></div><div class="ttdeci">void add(T1 Flags::*t1, const Name &amp;name, const Option&lt; Name &gt; &amp;alias, const std::string &amp;help, const T2 *t2, F validate)</div><div class="ttdef"><b>Definition:</b> flags.hpp:333</div></div>
<div class="ttc" id="classmesos_1_1slave_1_1ContainerLogger_html"><div class="ttname"><a href="classmesos_1_1slave_1_1ContainerLogger.html">mesos::slave::ContainerLogger</a></div><div class="ttdoc">A containerizer component used to manage container logs. </div><div class="ttdef"><b>Definition:</b> container_logger.hpp:54</div></div>
<div class="ttc" id="shell_8hpp_html"><div class="ttname"><a href="shell_8hpp.html">shell.hpp</a></div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html">mesos::internal::logger::LoggerFlags</a></div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:47</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html_a4a5d15a242a55783cf676b2fa799e360"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html#a4a5d15a242a55783cf676b2fa799e360">mesos::internal::logger::Flags::environment_variable_prefix</a></div><div class="ttdeci">std::string environment_variable_prefix</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:176</div></div>
<div class="ttc" id="classBytes_html"><div class="ttname"><a href="classBytes.html">Bytes</a></div><div class="ttdef"><b>Definition:</b> bytes.hpp:30</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html">mesos::internal::logger::Flags</a></div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:107</div></div>
<div class="ttc" id="namespacens_html_a28116b46e6543597a11733424cd1aa20"><div class="ttname"><a href="namespacens.html#a28116b46e6543597a11733424cd1aa20">ns::stringify</a></div><div class="ttdeci">std::string stringify(int flags)</div><div class="ttdef"><b>Definition:</b> ns.hpp:688</div></div>
<div class="ttc" id="classprocess_1_1Owned_html"><div class="ttname"><a href="classprocess_1_1Owned.html">process::Owned&lt; LogrotateContainerLoggerProcess &gt;</a></div></div>
<div class="ttc" id="logrotate_8hpp_html"><div class="ttname"><a href="logrotate_8hpp.html">logrotate.hpp</a></div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1Flags_html_a68a07a76e5b8842c754852a424d12525"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1Flags.html#a68a07a76e5b8842c754852a424d12525">mesos::internal::logger::Flags::launcher_dir</a></div><div class="ttdeci">std::string launcher_dir</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:178</div></div>
<div class="ttc" id="structmesos_1_1internal_1_1logger_1_1LoggerFlags_html_a324f6d7bd9a854fb74465d84cbfffd46"><div class="ttname"><a href="structmesos_1_1internal_1_1logger_1_1LoggerFlags.html#a324f6d7bd9a854fb74465d84cbfffd46">mesos::internal::logger::LoggerFlags::max_stderr_size</a></div><div class="ttdeci">Bytes max_stderr_size</div><div class="ttdef"><b>Definition:</b> lib_logrotate.hpp:102</div></div>
<div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:56</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>