home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
utility
/
misc
/
cutt_l02
/
cuttlog.doc
< prev
next >
Wrap
Text File
|
1993-12-07
|
3KB
|
68 lines
CuttLog
(c)Mark Taylor
What does CuttLog do?
It does what the title suggests,Cut down log files or for that matter any
Text file.The reason I wanted to do this was that some programs cut down
their own Logs ie BinkleyST,but most don't and I don't really have the time
or the inclination to piss about going through all my logs,which at the last
count were upto 20+ :).So thats the reason.
It's very easy to setup and use,CuttLog search's a CFG file (CuttLog.CFG)
for file names and required maximum size,if the file is bigger than the
maximum permitted it then attemps to cut the file down to 2/3 (Two thirds)
of the original size,if it is still too big it then cuts it down to 2/3 of
the Maximum permitted size,simple is'nt it.
To set up CuttLog.CFG make a text (ASCII) file with filename & size like this:
If you require logging then make a statement like below the *FIRST* line
Log F:\LOG\CUTTLOG.LOG 20
KeyWord:Log
Example:F:\LOG\CUTTLOG.LOG 20
Meaning:This is where all info will be sent,it *MUST BE THE FIRST LINE*,
it will look after its self,a default size of 15KB is used if no
size is given.
KeyWord:Cut
Example:Cut F:\LOG\BINKLEY.LOG 10
Meaning:This will Cut F:\LOG\BINKLEY.LOG down if it is bigger than 10K.
If no size is given then it defaults to 15 KiloBytes.Also a size can not be
smaller than 1K (<1).
I've included a Example CFG in the Zip just hack that one if you wish.
There are a few clues that come up onto the screen to let you know what is
happening these are:
* Cutting down file or there has been a Error.
+ No file with this name exists.
$ No size given so using the default.
o All is going to plan (we hope). :)
There may be some bugs,but I hope not,I will not accept any blame if CuttLog
does anything funny to your hard drive.
If you find any bugs or you want something added,then please either NetMail
me at the address' below or write to me at my home address.
If you use CuttLog regularly then I'd like you to send me either a NetMail or
a PostCard or if you're feeling really generous then a Donation would be nice.
Now so far I've written a few programs and I know people are using them so,
WHY don't you get off your butts and do one of the above!!!!
My Home Address:
Mark Taylor
1,Hope Villas,
Upper SpringField Road,
Uplands,Stroud,
Glos.GL5 1TF.
My BBS:I'll Try That Once! +44(0)-453-765378 (24 Hours)
NetMail Address'
100:107/0.0@TurboNet.ftn
90:106/150.0@NeST.ftn
51:501/150.0@AtariNet.ftn
I have a FidoNet address but this Geo Stuff gets on my tits,so only use if
you have to :)