Gateway log is empty. how to enable the gateway log

You mean the real-time logs? These will only show up if the websocket connection is active and will only show logs while you are logged into the dashboard, it’s a live view, not a stored log. Fo that you need to look at the files (or just tail the docker output).