Create logWriter.py

Added logWriter.py