Manual:DIL Manual/flog()
Jump to navigation
Jump to search
Function: flog (filename : string, s : string, wa : string );
filename The Filename of the file to appear in the log directory. s The string to be logged. wa Write or Append
The 'flog' function allows you to split up your logs in the log directory so that you don't end up with everything in the main vme.log. Note:The append/write argument must be in lower case and can only be a 'w' or a 'a' surrounded by '"'. If the argument is a 'w' it will over write any log file by that name. If the argument is 'a' it will append to the file by that name. Example:
---~---~---~---~---~---~---~---~---
dilbegin zonelog (s:string); code { flog (self.zonidx+".log",s,"a"); return; } dilend
---~---~---~---~---~---~---~---~---
The previous DIL function will work in any zone to log to a file with that zones name each zone could use it to keep zone logs separate.
---~---~---~---~---~---~---~---~---