Home Page
        Orders     Downloads     Support     Contact     Deutsch
ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
PyroBatchFTP Online Help Topic:

Script Commands → LogtoFile

Logtofile <Filename>, <Text>

 

This command lets you write a custom logfile. The command appends a line containing <text> to the file given in the first parameter. The text can contain the following placeholders:

$(lastresult) (previous command's status code, EXMPL(#200 OK)),

$(lasterror) (last error code, #500 file not found),

$(date) and $(time) (current date und time).

See Macros for more such macro names.

 

If <filename> is $logfile the text will be written into the standard PyroBatchFTP logfile.

 

See also: SetLogfilename

 

 
Example:  LogToFile "transfer.log", "$(date) $(time) - Transfer complete: $(lasterror)"

 
← Back to Script Commands

 

Downloads
Orders
Contact
Support
Terms of Use
Privacy Policy
pixel