Movable Python & LoggingLogging the Output of Python Scripts![]() Introduction![]() Movable Python can log the output of all Python programs it runs. Any output on standard output and standard error can be logged, so long as they use the normal Python streams. Setting the Log ModeMovable Python has three logging modes, chosen from the Log Mode menu option.
Configuring LoggingYou set the log file location (and can also change the log mode) from dialog launched by the Configure -> Logging menu option. You can choose an individual file or use special values in the path to indicate the file to be used for logging. You can use this to create a new logfile (or directory) per file that you run or have files created by time or date (this means that you can create a new log file per file run, or a log directory per day). If the directory specified does not exist, Movable Python will attempt to create it. The following values will automatically be replaced in the path :
The default log directory is lib/config/logs/. The default log file path is : lib/config/logs/{DATE}-{TIME}-{FILE}.txt This creates log files with filenames that look like : 20061127-005125-somefile.py.txt Return to Top |
|