home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / utility / misc / cutt_l02 / cuttlog.doc < prev    next >
Text File  |  1993-12-07  |  3KB  |  68 lines

  1.                                    CuttLog
  2.                                 (c)Mark Taylor
  3.  
  4. What does CuttLog do?
  5. It does what the title suggests,Cut down log files or for that matter any
  6. Text file.The reason I wanted to do this was that some programs cut down
  7. their own Logs ie BinkleyST,but most don't and I don't really have the time
  8. or the inclination to piss about going through all my logs,which at the last
  9. count were upto 20+ :).So thats the reason.
  10. It's very easy to setup and use,CuttLog search's a CFG file (CuttLog.CFG)
  11. for file names and required maximum size,if the file is bigger than the 
  12. maximum permitted it then attemps to cut the file down to 2/3 (Two thirds)
  13. of the original size,if it is still too big it then cuts it down to 2/3 of 
  14. the Maximum permitted size,simple is'nt it.
  15. To set up CuttLog.CFG  make a text (ASCII) file with filename &  size like this:
  16. If you require logging then make a statement like below the *FIRST* line 
  17. Log F:\LOG\CUTTLOG.LOG 20
  18.  
  19. KeyWord:Log
  20. Example:F:\LOG\CUTTLOG.LOG 20
  21. Meaning:This is where all info will be sent,it *MUST BE THE FIRST LINE*,
  22.         it will look after its self,a default size of 15KB is used if no
  23.         size is given.
  24.  
  25. KeyWord:Cut
  26. Example:Cut F:\LOG\BINKLEY.LOG 10
  27. Meaning:This will Cut F:\LOG\BINKLEY.LOG down if it is bigger than 10K.
  28.  
  29. If no size is given then it defaults to 15 KiloBytes.Also a size can not be
  30. smaller than 1K (<1).
  31.  
  32. I've included a Example CFG in the Zip just hack that one if you wish.
  33. There are a few clues that come up onto the screen to let you know what is
  34. happening these are:
  35. * Cutting down file or there has been a Error.
  36. + No file with this name exists.
  37. $ No size given so using the default.
  38. o All is going to plan (we hope). :) 
  39. There may be some bugs,but I hope not,I will not accept any blame if CuttLog
  40. does anything funny to your hard drive.
  41. If you find any bugs or you want something added,then please either NetMail
  42. me at the address' below or write to me at my home address.
  43. If you use CuttLog regularly then I'd like you to send me either a NetMail or
  44. a PostCard or if you're feeling really generous then a Donation would be nice.
  45. Now so far I've written a few programs and I know people are using them so,
  46. WHY don't you get off your butts and do one of the above!!!!
  47.  
  48. My Home Address:
  49.  
  50. Mark Taylor
  51. 1,Hope Villas,
  52. Upper SpringField Road,
  53. Uplands,Stroud,
  54. Glos.GL5 1TF.
  55.  
  56. My BBS:I'll Try That Once! +44(0)-453-765378 (24 Hours)
  57.  
  58. NetMail Address'
  59. 100:107/0.0@TurboNet.ftn
  60. 90:106/150.0@NeST.ftn
  61. 51:501/150.0@AtariNet.ftn
  62.  
  63. I have a FidoNet address but this Geo Stuff gets on my tits,so only use if 
  64. you have to :)
  65.  
  66.  
  67.    
  68.