]> granicus.if.org Git - apache/blob - docs/manual/programs/rotatelogs.xml.ko
Update transforms
[apache] / docs / manual / programs / rotatelogs.xml.ko
1 <?xml version='1.0' encoding='EUC-KR' ?>
2 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 420993:916377 (outdated) -->
5
6 <!--
7  Licensed to the Apache Software Foundation (ASF) under one or more
8  contributor license agreements.  See the NOTICE file distributed with
9  this work for additional information regarding copyright ownership.
10  The ASF licenses this file to You under the Apache License, Version 2.0
11  (the "License"); you may not use this file except in compliance with
12  the License.  You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 -->
22
23 <manualpage metafile="rotatelogs.xml.meta">
24 <parentdocument href="./">Programs</parentdocument>
25
26   <title>rotatelogs - ¾ÆÆÄÄ¡ ·Î±×¸¦ ¼øȯÇϱâÀ§ÇØ ÆÄÀÌÇÁ·Î ¿¬°áÇÒ
27   ·Î±× ÇÁ·Î±×·¥</title>
28
29 <summary>
30      <p><code>rotatelogs</code>´Â ¾ÆÆÄÄ¡ÀÇ ÆÄÀÌÇÁ ·Î±×ÆÄÀÏ ±â´ÉÀ»
31      À§ÇÑ °£´ÜÇÑ ÇÁ·Î±×·¥ÀÌ´Ù. ¿¹¸¦ µé¾î:</p>
32
33 <example>
34      CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common
35 </example>
36          
37      <p>±×·¯¸é /var/logs/logfile.nnnn ÆÄÀÏÀ» ¸¸µç´Ù. nnnnÀº
38      ·Î±×¸¦ ½ÃÀÛÇÑ ½Ã½ºÅ۽ð£ÀÌ´Ù (ÀÌ ½Ã°£Àº Ç×»ó ¼øȯ±â°£ÀÇ
39      ¹è¼öÀÌ´Ù. ±×·¡¼­ cron ½ºÅ©¸³Æ®·Î Ã³¸®Çϱ⠽±´Ù). ¼øȯ±â°£
40      (¿©±â¼­´Â 24 ½Ã°£) ¸¶´Ù »õ·Î¿î ·Î±×¸¦ ½ÃÀÛÇÑ´Ù.</p>
41
42 <example>
43      CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common
44 </example>
45
46      <p>ÀÌ ¼³Á¤Àº ·Î±×ÆÄÀÏ Å©±â°¡ 5 ¸Þ°¡¹ÙÀÌÆ®°¡ µÉ¶§¸¶´Ù
47      ¼øȯÇÑ´Ù.</p>
48          
49 <example>
50      ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"
51 </example>
52      <p>ÀÌ ¼³Á¤Àº ¿À·ù·Î±× ÆÄÀÏ Å©±â°¡ 5 ¸Þ°¡¹ÙÀÌÆ®°¡ µÉ¶§¸¶´Ù
53      <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>¿Í °°Àº ÆÄÀÏÀ»
54      ¸¸µé¾î¼­ ¿À·ù·Î±× ÆÄÀÏÀ» ¼øȯÇÑ´Ù.</p>
55
56 </summary>
57
58 <section id="synopsis"><title>°³¿ä</title>
59
60      <p><code><strong>rotatelogs</strong>
61      [ -<strong>l</strong> ]
62      <var>logfile</var>
63      [ <var>rotationtime</var> [ <var>offset</var> ]] |
64      [ <var>filesize</var>M ]</code></p>
65 </section>
66
67 <section id="options"><title>¿É¼Ç</title>
68
69 <dl>
70
71 <dt><code>-l</code></dt>
72 <dd>¼øȯÁÖ±â·Î GMT ´ë½Å Áö¿ª½Ã°£À» »ç¿ëÇÑ´Ù. (BST³ª DST¿Í °°ÀÌ)
73 GMT ½Ã°£Â÷°¡ º¯Çϴ ȯ°æ¿¡¼­ <code>-l</code>À» »ç¿ëÇϸ頿¹±âÄ¡
74 ¾ÊÀº °á°ú°¡ ¹ß»ýÇÒ ¼ö ÀÖ´Ù!</dd>
75
76 <dt><code><var>logfile</var></code></dt>
77
78 <dd>·Î±×ÆÄÀÏÀÇ °æ·Î¿Í À̸§. <var>logfile</var>¿¡ '%' ¹®ÀÚ°¡
79 ÀÖ´Ù¸é <code>strftime(3)</code>ÀÇ Çü½Ä¹®ÀÚ¿­°ú °°À̠ó¸®ÇÑ´Ù.
80 '%' ¹®ÀÚ°¡ ¾ø´Ù¸é µÚ¿¡ ÃÊ´ÜÀ§ ½Ã°£ <var>.nnnnnnnnnn</var>À»
81 ÀÚµ¿À¸·Î ºÙÀδÙ. µÎ Çü½Ä ¸ðµÎ ÇöÀ砱ⰣºÎÅÍ ½ÃÀ۽ð£À» °è»êÇÑ´Ù.</dd>
82
83 <dt><code><var>rotationtime</var></code></dt>
84
85 <dd>·Î±×ÆÄÀÏÀ» ¼øȯÇÒ ÃÊ´ÜÀ§ ½Ã°£.</dd>
86
87 <dt><code><var>offset</var></code></dt>
88
89 <dd>UTC¿¡¼­ ºÐ´ÜÀ§ ½Ã°£Â÷ÀÌ. »ý·«Çϸé 0À¸·Î °¡Á¤ÇÏ¿© UTC¸¦
90 »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, UTC -5 ½Ã°£´ëÀÇ Áö¿ª½Ã°£À» »ç¿ëÇÑ´Ù¸é
91 ¾Æ±Ô¸ÕÆ®·Î <code>-300</code>À» ÁöÁ¤ÇÑ´Ù.</dd>
92
93 <dt><code><var>filesize</var>M</code></dt>
94
95 <dd>½Ã°£ÀÌ ¾Æ´Ñ Å©±â¸¦ ÁöÁ¤ÇÒ¶§ ¸Þ°¡¹ÙÀÌÆ®´ÜÀ§ ÃÖ´ë ÆÄÀÏÅ©±â
96 µÚ¿¡ <code>M</code>À» ºÙÀδÙ. rotationtime°ú offset ´ë½Å ÀÌ
97 ÆĶó¹ÌÅ͸¦ »ç¿ëÇÑ´Ù.</dd>
98 </dl>
99 </section>
100
101 <section id="portability"><title>Æ÷Æð¡´É¼º</title>
102
103 <p>´ÙÀ½ ·Î±×ÆÄÀÏ Çü½Ä¹®ÀÚ¿­ Ç¥ÇöÀº ¸ðµç <code>strftime(3)</code>
104 ±¸ÇöÀÌ Áö¿øÇؾߠÇÑ´Ù. ¶óÀ̺귯¸® Æ¯À¯ÀÇ È®ÀåÀº
105 <code>strftime(3)</code> manpage¸¦ Âü°íÇ϶ó.</p>
106
107 <table border="1" style="zebra">
108 <tr><td><code>%A</code></td><td>(Áö¿ªÈ­µÈ) ¿ÏÀüÇÑ ¿äÀÏ À̸§</td></tr>
109 <tr><td><code>%a</code></td><td>(Áö¿ªÈ­µÈ) 3-¹®ÀÚ ¿äÀÏ À̸§</td></tr>
110 <tr><td><code>%B</code></td><td>(Áö¿ªÈ­µÈ) ¿ÏÀüÇÑ ´Þ À̸§</td></tr>
111 <tr><td><code>%b</code></td><td>(Áö¿ªÈ­µÈ) 3-¹®ÀÚ ´Þ À̸§</td></tr>
112 <tr><td><code>%c</code></td><td>(Áö¿ªÈ­µÈ) ³¯Â¥¿Í ½Ã°£</td></tr>
113 <tr><td><code>%d</code></td><td>2-ÀÚ¸® ÀÏ</td></tr>
114 <tr><td><code>%H</code></td><td>2-ÀÚ¸® ½Ã°£ (24 ½Ã°£ ½Ã°è)</td></tr>
115 <tr><td><code>%I</code></td><td>2-ÀÚ¸® ½Ã°£ (12 ½Ã°£ ½Ã°è)</td></tr>
116 <tr><td><code>%j</code></td><td>3-ÀÚ¸® ³¯Â¥¼ö</td></tr>
117 <tr><td><code>%M</code></td><td>2-ÀÚ¸® ºÐ</td></tr>
118 <tr><td><code>%m</code></td><td>2-ÀÚ¸® ´Þ</td></tr>
119 <tr><td><code>%p</code></td><td>(Áö¿ªÈ­µÈ) 12 ½Ã°£ ½Ã°èÀÇ am/pm</td></tr>
120 <tr><td><code>%S</code></td><td>2-ÀÚ¸® ÃÊ</td></tr>
121 <tr><td><code>%U</code></td><td>2-ÀÚ¸® ÁÖÀϼö (ÁÖÀǠù¹øÀç ³¯Àº
122 ÀÏ¿äÀÏ)</td></tr>
123 <tr><td><code>%W</code></td><td>2-ÀÚ¸® ÁÖÀϼö (ÁÖÀǠù¹øÀç ³¯Àº
124 ¿ù¿äÀÏ)</td></tr>
125 <tr><td><code>%w</code></td><td>1-ÀÚ¸® ¿äÀϼö (ÁÖÀǠù¹ø° ³¯Àº
126 ÀÏ¿äÀÏ)</td></tr>
127 <tr><td><code>%X</code></td><td>(Áö¿ªÈ­µÈ) ½Ã°£</td></tr>
128 <tr><td><code>%x</code></td><td>(Áö¿ªÈ­µÈ) ³¯Â¥</td></tr>
129 <tr><td><code>%Y</code></td><td>4-ÀÚ¸® ¿¬µµ</td></tr>
130 <tr><td><code>%y</code></td><td>2-ÀÚ¸® ¿¬µµ</td></tr>
131 <tr><td><code>%Z</code></td><td>½Ã°£´ë À̸§</td></tr>
132 <tr><td><code>%%</code></td><td>¹®ÀÚ±×´ë·Î `%'</td></tr>
133 </table>
134
135 </section>
136 </manualpage>