1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

cronolog is a simple program that reads log messages from its input

and writes them to a set of output files, the names of which are
constructed using template and the current date and time.  The
template uses the same format specifiers as the Unix date command
(which are the same as the standard C strftime library function).

PR:		16254
Submitted by:	Mark Blackman <tmb_ports@maddog.u-net.com>
This commit is contained in:
Chris D. Faulhaber 2000-01-22 03:10:03 +00:00
parent f98adc4112
commit 61d7daff10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24894
6 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# New ports collection makefile for: cronolog
# Version required: 1.6.1
# Date created: 20 January 2000
# Whom: Mark Blackman <tmb_ports@maddog.u-net.com>
#
# $FreeBSD$
#
DISTNAME= cronolog-1.6.1
CATEGORIES= sysutils
MASTER_SITES= http://www.ford-mason.co.uk/resources/cronolog/
MAINTAINER= tmb_ports@maddog.u-net.com
MAN1= cronolog.1m cronosplit.1m
GNU_CONFIGURE= yes
post-install:
${STRIP} ${PREFIX}/sbin/cronolog ${PREFIX}/sbin/cronolog
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (cronolog-1.6.1.tar.gz) = 8c9a3ecf3ea8d39daa5eebea91112846

View File

@ -0,0 +1,12 @@
*** - Thu Jan 20 16:03:33 2000
--- src/cronoutils.c Thu Jan 20 16:01:37 2000
***************
*** 71,77 ****
#include "cronoutils.h"
extern char *tzname[2];
- extern long int timezone;
/* debug_file is the file to output debug messages to. No debug
--- 71,76 ----

View File

@ -0,0 +1 @@
A web log rotation utility that provides datestamp filenames

View File

@ -0,0 +1,35 @@
"cronolog" is a simple program that reads log messages from its input
and writes them to a set of output files, the names of which are
constructed using template and the current date and time. The
template uses the same format specifiers as the Unix date command
(which are the same as the standard C strftime library function).
"cronolog" is intended to be used in conjunction with a Web server, such
as Apache to split the access log into daily or monthly logs. For
example the Apache configuration directives:
TransferLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/access.log"
ErrorLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/errors.log"
would instruct Apache to pipe its access and error log messages into
separate copies of cronolog, which would create new log files each day
in a directory hierarchy structured by date, i.e. on 31 December 1996
messages would be written to
/www/logs/1996/12/31/access.log
/www/logs/1996/12/31/errors.log
after midnight the files
/www/logs/1997/01/01/access.log
/www/logs/1997/01/01/errors.log
would be used, with the directories 1997, 1997/01 and 1997/01/01 being
created if they did not already exist.
The most up-to-date version of "cronolog" can be found at:
WWW: http://www.ford-mason.co.uk/resources/cronolog/
- Mark Blackman
tmb@maddog.u-net.com

View File

@ -0,0 +1,3 @@
info/cronolog.info
sbin/cronolog
sbin/cronosplit