Apache HTTP Server Version 2.4
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
�� ���� ������
���� �����α� ������ ��ȯ�Ѵ�.
rotatelogs
[ -l ]
logfile
[ rotationtime [ offset ]] |
[ filesizeM ]
-l
-l
�� ����ϸ� ����ġ
���� ����� ���� �� �ִ�!logfile
strftime(3)
�� ���Ĺ��ڿ��� ���� ó���Ѵ�.
'%' ���ڰ� ���ٸ� �ڿ� �ʴ��� �ð� .nnnnnnnnnn��
�ڵ����� ���δ�. �� ���� ��� ���� �Ⱓ���� ���۽ð��� ����Ѵ�.rotationtime
offset
-300
�� �����Ѵ�.filesizeM
M
�� ���δ�. rotationtime�� offset ��� ��
�Ķ���� ����Ѵ�.���� �α����� ���Ĺ��ڿ� ǥ���� ��� strftime(3)
������ �����ؾ� �Ѵ�. ���̺귯�� Ư���� Ȯ����
strftime(3)
manpage�� �����϶�.
%A | (����ȭ��) ������ ���� �̸� |
%a | (����ȭ��) 3-���� ���� �̸� |
%B | (����ȭ��) ������ �� �̸� |
%b | (����ȭ��) 3-���� �� �̸� |
%c | (����ȭ��) ��¥�� �ð� |
%d | 2-�ڸ� �� |
%H | 2-�ڸ� �ð� (24 �ð� �ð�) |
%I | 2-�ڸ� �ð� (12 �ð� �ð�) |
%j | 3-�ڸ� ��¥�� |
%M | 2-�ڸ� �� |
%m | 2-�ڸ� �� |
%p | (����ȭ��) 12 �ð� �ð��� am/pm |
%S | 2-�ڸ� �� |
%U | 2-�ڸ� ���ϼ� (���� ù���� ���� �Ͽ���) |
%W | 2-�ڸ� ���ϼ� (���� ù���� ���� ������) |
%w | 1-�ڸ� ���ϼ� (���� ù��° ���� �Ͽ���) |
%X | (����ȭ��) �ð� |
%x | (����ȭ��) ��¥ |
%Y | 4-�ڸ� ���� |
%y | 2-�ڸ� ���� |
%Z | �ð��� �̸� |
%% | ���ڱ״�� `%' |