of_logfile

This function logs messages to a log file.

The name of the logfile defaults to servicename.log and will be located in C:\Windows\System32. To override this, update the registry setting LogFileName with a complete path & filename. See the explanation for -reg on the Install Service page for more information.

There is an instance variable il_logmaxlen that can be set to the maximum size in bytes the logfile can be. If you set this value, the logfile will be renamed to 'logfile_mmddyyyy_hhmmss.log'. The format of the date & time can be controlled by setting the instance variables is_logdatefmt and is_logtimefmt.

Arguments:

as_msg - message text

Return:

None

Usage:

This function would be called anytime you want to write a message to the log file.

of_Logfile("Something really cool just happened!")