rotatelogs.xml.ko revision a78048ccbdb6256da15e6b0e7e95355e480c2301
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 1.7 (outdated: 1.8) -->
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manualpage metafile="rotatelogs.xml.meta">
<parentdocument href="./">Programs</parentdocument>
<title>rotatelogs - ����ġ �α׸� ��ȯ�ϱ����� �������� ������
�α� ���α׷�</title>
<summary>
<p><code>rotatelogs</code>�� ����ġ�� ������ �α����� �����
���� ������ ���α׷��̴�. ���� ���:</p>
<example>
CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common
</example>
<p>�׷��� /var/logs/logfile.nnnn ������ �����. nnnn��
�α׸� ������ �ý��۽ð��̴� (�� �ð��� �׻� ��ȯ�Ⱓ��
����̴�. �׷��� cron ��ũ��Ʈ�� ó���ϱ� ����). ��ȯ�Ⱓ
(���⼭�� 24 �ð�) ���� ���ο� �α׸� �����Ѵ�.</p>
<example>
CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common
</example>
<p>�� ������ �α����� ũ�Ⱑ 5 �ް�����Ʈ�� �ɶ�����
��ȯ�Ѵ�.</p>
</summary>
<section id="synopsis"><title>����</title>
<p><code><strong>rotatelogs</strong> <var>logfile</var>
[ <var>rotationtime</var> [ <var>offset</var> ]] |
[ <var>filesize</var>M ]</code></p>
</section>
<section id="options"><title>�ɼ�</title>
<dl>
<dt><code><var>logfile</var></code></dt>
<dd>�α������� ��ο� �̸�. <var>logfile</var>�� '%' ���ڰ�
�ִٸ� <code>strftime(3)</code>�� ��Ĺ��ڿ��� ���� ó���Ѵ�.
'%' ���ڰ� ��ٸ� �ڿ� �ʴ��� �ð� <var>.nnnnnnnnnn</var>��
�ڵ����� ���δ�. �� ��� ��� ���� �Ⱓ���� ���۽ð��� ����Ѵ�.</dd>
<dt><code><var>rotationtime</var></code></dt>
<dd>�α������� ��ȯ�� �ʴ��� �ð�.</dd>
<dt><code><var>offset</var></code></dt>
<dd>UTC���� �д��� �ð�����. ���ϸ� 0���� �����Ͽ� UTC��
����Ѵ�. ���� ���, UTC -5 �ð����� �����ð��� ����Ѵٸ�
�ƱԸ�Ʈ�� <code>-300</code>�� �����Ѵ�.</dd>
<dt><code><var>filesize</var>M</code></dt>
<dd>�ð��� �ƴ� ũ�⸦ �����Ҷ� �ް�����Ʈ���� �ִ� ����ũ��
�ڿ� <code>M</code>�� ���δ�. rotationtime�� offset ��� ��
�Ķ���͸� ����Ѵ�.</dd>
</dl>
</section>
<section id="portability"><title>���ð��ɼ�</title>
<p>���� �α����� ��Ĺ��ڿ� ǥ���� ��� <code>strftime(3)</code>
������ �����ؾ� �Ѵ�. ���̺귯�� Ư���� Ȯ����
<code>strftime(3)</code> manpage�� ����϶�.</p>
<table border="1" style="zebra">
<tr><td><code>%A</code></td><td>(����ȭ��) ������ ���� �̸�</td></tr>
<tr><td><code>%a</code></td><td>(����ȭ��) 3-���� ���� �̸�</td></tr>
<tr><td><code>%B</code></td><td>(����ȭ��) ������ �� �̸�</td></tr>
<tr><td><code>%b</code></td><td>(����ȭ��) 3-���� �� �̸�</td></tr>
<tr><td><code>%c</code></td><td>(����ȭ��) ��¥�� �ð�</td></tr>
<tr><td><code>%d</code></td><td>2-�ڸ� ��</td></tr>
<tr><td><code>%H</code></td><td>2-�ڸ� �ð� (24 �ð� �ð�)</td></tr>
<tr><td><code>%I</code></td><td>2-�ڸ� �ð� (12 �ð� �ð�)</td></tr>
<tr><td><code>%j</code></td><td>3-�ڸ� ��¥��</td></tr>
<tr><td><code>%M</code></td><td>2-�ڸ� ��</td></tr>
<tr><td><code>%m</code></td><td>2-�ڸ� ��</td></tr>
<tr><td><code>%p</code></td><td>(����ȭ��) 12 �ð� �ð��� am/pm</td></tr>
<tr><td><code>%S</code></td><td>2-�ڸ� ��</td></tr>
<tr><td><code>%U</code></td><td>2-�ڸ� ���ϼ� (���� ù���� ����
�Ͽ���)</td></tr>
<tr><td><code>%W</code></td><td>2-�ڸ� ���ϼ� (���� ù���� ����
�����)</td></tr>
<tr><td><code>%w</code></td><td>1-�ڸ� ���ϼ� (���� ù��° ����
�Ͽ���)</td></tr>
<tr><td><code>%X</code></td><td>(����ȭ��) �ð�</td></tr>
<tr><td><code>%x</code></td><td>(����ȭ��) ��¥</td></tr>
<tr><td><code>%Y</code></td><td>4-�ڸ� ����</td></tr>
<tr><td><code>%y</code></td><td>2-�ڸ� ����</td></tr>
<tr><td><code>%Z</code></td><td>�ð��� �̸�</td></tr>
<tr><td><code>%%</code></td><td>���ڱ״�� `%'</td></tr>
</table>
</section>
</manualpage>