CESLogFile

What is it?

TCESLogFile is based upon Riccardo 'Rico' Pareschi's (RicoSoftrico@mbox.4net.it), component TLogFile. Rico based his component on an idea by Song Weng Sam and is a log file component. Needing such a component and not wanting to write one myself, I came across Rico's. For my needs, I needed a way to create a back-up of the log file when it, the log file, gets too large. I also needed one procedure to Open, Write and Close an error or other event in one operation. Lastly, since my error messages are all pretty standard, I added a design time property to enter a standard error message. I also noted a 'bug'. When the procedure CloseLogFile was run, the design time LogFile setting was messed up. I added a way to save its value so that the component would always remember the log file name that was entered at design time. I also rearranged the date and time stamps in the Write procedures.

 

The design time properties added were ErrorMsg and LogSize.

Added procedures are: WriteStdErrorMsg, OWCStdErrorMsg and CheckLogFileSize.

 

TCESLogFile is freeware with source.

 

To download the zip file, click the link below: (FTP)

 

CESLogFile.zip