C:\Program Files\PostgreSQL\9.6\data\pg_log
Go to the above folder and delete all log files.
-->C:\Program Files\PostgreSQL\9.6\data\postgresql.conf
Go to above path, inside the file do the below.
# This is used when logging to stderr:
logging_collector = off