the windows user that owns the process ("postgres" by default) needs to have the right to write in the folder to write a server log. by default, this user has very few privileges (for good reasons - security).
about psql not writing that log: >> means to redirect "standard out" to a file. But "standard error" is not affected by that. add 2>&1 to write errors to that log too.