<-
Apache > HTTP Server > Documentation > Version 2.4 > Programs

rotatelogs - ����ġ �α׸� ��ȯ�ϱ����� �������� ������ �α� ���α׷�

������ ���:  en  |  fr  |  ko  |  tr 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.

rotatelogs�� ����ġ�� ������ �α����� ����� ���� ������ ���α׷��̴�. ���� ���:

CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common

�׷��� /var/logs/logfile.nnnn ������ �����. nnnn�� �α׸� ������ �ý��۽ð��̴� (�� �ð��� �׻� ��ȯ�Ⱓ�� ����̴�. �׷��� cron ��ũ��Ʈ�� ó���ϱ� ����). ��ȯ�Ⱓ (���⼭�� 24 �ð�) ���� ���ο� �α׸� �����Ѵ�.

CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common

�� ������ �α����� ũ�Ⱑ 5 �ް�����Ʈ�� �ɶ����� ��ȯ�Ѵ�.

ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"

�� ������ �����α� ���� ũ�Ⱑ 5 �ް�����Ʈ�� �ɶ����� errorlog.YYYY-mm-dd-HH_MM_SS�� ���� ������ ���� �����α� ������ ��ȯ�Ѵ�.

Support Apache!

����

top

����

rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [ filesizeM ]

top

�ɼ�

-l
��ȯ�ֱ�� GMT ��� �����ð��� ����Ѵ�. (BST�� DST�� ����) GMT �ð����� ���ϴ� ȯ�濡�� -l�� ����ϸ� ����ġ ���� ����� �߻��� �� �ִ�!
logfile
�α������� ��ο� �̸�. logfile�� '%' ���ڰ� �ִٸ� strftime(3)�� ���Ĺ��ڿ��� ���� ó���Ѵ�. '%' ���ڰ� ���ٸ� �ڿ� �ʴ��� �ð� .nnnnnnnnnn�� �ڵ����� ���δ�. �� ���� ��� ���� �Ⱓ���� ���۽ð��� ����Ѵ�.
rotationtime
�α������� ��ȯ�� �ʴ��� �ð�.
offset
UTC���� �д��� �ð�����. �����ϸ� 0���� �����Ͽ� UTC�� ����Ѵ�. ���� ���, UTC -5 �ð����� �����ð��� ����Ѵٸ� �ƱԸ�Ʈ�� -300�� �����Ѵ�.
filesizeM
�ð��� �ƴ� ũ�⸦ �����Ҷ� �ް�����Ʈ���� �ִ� ����ũ�� �ڿ� M�� ���δ�. rotationtime�� offset ��� �� �Ķ���͸� ����Ѵ�.
top

���ð��ɼ�

���� �α����� ���Ĺ��ڿ� ǥ���� ��� strftime(3) ������ �����ؾ� �Ѵ�. ���̺귯�� Ư���� Ȯ���� strftime(3) manpage�� �����϶�.

%A(����ȭ��) ������ ���� �̸�
%a(����ȭ��) 3-���� ���� �̸�
%B(����ȭ��) ������ �� �̸�
%b(����ȭ��) 3-���� �� �̸�
%c(����ȭ��) ��¥�� �ð�
%d2-�ڸ� ��
%H2-�ڸ� �ð� (24 �ð� �ð�)
%I2-�ڸ� �ð� (12 �ð� �ð�)
%j3-�ڸ� ��¥��
%M2-�ڸ� ��
%m2-�ڸ� ��
%p(����ȭ��) 12 �ð� �ð��� am/pm
%S2-�ڸ� ��
%U2-�ڸ� ���ϼ� (���� ù���� ���� �Ͽ���)
%W2-�ڸ� ���ϼ� (���� ù���� ���� ������)
%w1-�ڸ� ���ϼ� (���� ù��° ���� �Ͽ���)
%X(����ȭ��) �ð�
%x(����ȭ��) ��¥
%Y4-�ڸ� ����
%y2-�ڸ� ����
%Z�ð��� �̸�
%%���ڱ״�� `%'

������ ���:  en  |  fr  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.