Desk-Back2 / test_logging.py
Fred808's picture
Upload 77 files
5111c4b verified
import sys
from datetime import datetime
# Write directly to a file
with open('test_output.txt', 'w') as f:
f.write(f"Test run at {datetime.now()}\n")
f.write(f"Python version: {sys.version}\n")
f.write("If you can read this, file writing is working\n")
print("Test completed - check test_output.txt")