cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CRONOLOG]: Quick help.....



Ben Jamieson wrote:

Hi all,

Its been so long since I installed Cronolog (kudos to Cronolog - never a
reason to fiddle with it!) but now I want to make a slight change, but can't
remember how.

I have an overall log for a bunch of sites on my server, set up via:

CustomLog '|"/usr/local/sbin/cronolog"
"/Library/Webserver/Documents/Logs/%Y/%m/global.log"' combined_v


But I want to split one site out into its own file that rolls daily.

I have added:

CustomLog '|"/usr/local/sbin/cronolog"
"/Library/Webserver/Documents/Logs/%Y/%m/ib.log"' combined_v

to the virtual host section, but actually want it to roll daily.

I *don't* want to have a folder for every day, which I presume would be:

...Logs/%Y/%m/%d/ib.log

Bt don't know quite what I need to get my logs for this domain split into a

Year/Month/1_ib.log
Year/Month/2_ib.log
...
 Year/Month/31_ib.log

type thing...

Any pointers greatly appreciated.



Just:

 ...Logs/%Y/%m/%d_ib.log

(although the files will be 01_ib.log, 02_ib.log, etc rather than 1_ib.log, 2_ib.log -- as strftime puts in a leading zero for %d for single digit days.

Once I get this sorted, I was going to see if I cold use Mathew Grossos
patch to post process it, but the URl for it:

http://www.nullo.org/~mgrosso/cronolog-1.7.0-beta.tar.gz

Appears dead...

Does anyone know if there is an alternate link for this...?



I have put the file up on the "patches" page of cronolog.org

My final question, being from a Mac background, is... how the hell do you
apply a patch? (Don't laugh - I come from a double click world!)



On *nix try:

   patch <patchfile

in the "appropriate" directory. I.e. if the paths in the patch start "cronolog-1.6.2/src/..." then you could apply the patch from the directory containing the cronolog-1.6.2 directory, althernatively you could use the -p option to strip off a prefix, so you could apply the patch in your cronolog directory by saying:

   patch -p1 <patchfile

the -p1 will strip off one level of directory from the pathnames embedded in the patch (which may be useful if the top level directory name in the patch does not match your top-level directory name).

For more information see the patch manual page.

thanks in advance to anyone who can help with any of the above!

Ben



Andrew

--
Andrew Ford, Director Pauntley Prints / Ford & Mason Ltd
A.Ford@xxxxxxxxxxxxxxxx South Wing Compton House pauntley-prints.co.uk Compton Green, Redmarley Tel: +44 1531 829900
ford-mason.co.uk Gloucester GL19 3JB Fax: +44 1531 829901
refcards.com cronolog.org Great Britain Mobile: +44 7785 258278





Copyright © 1996-2004 Andrew Ford and Ford & Mason Ltd