Once you have set up Valet to serve a website, where can you find the access logs and the error logs for that website?
I can see the file ~/.config/valet/Log/nginx-error.log, but it doesn't seem to contain the access log or the output of the error_log function in PHP.
I've done some troubleshooting, and here are my discoveries for lurkers coming across this.
For a Homebrew installation of nginx and Valet, the configuration of nginx is at /usr/local/etc/nginx/nginx.conf. In that file, I can see this line:
include valet/valet.conf
In the file /usr/local/etc/nginx/valet/valet.conf, I see these two lines:
access_log off;
error_log /Users/flimm/.config/valet/Log/nginx-error.log;
So you might want to check that those values are what you want them to be.
Create a file test.php with the contents:
<?php
error_log("test");
And run it. You should get the log output test in your error file.
If not, have a look at my answer on StackOverflow which goes into detail about debugging error_log().
I still think that Valet could use better documentation for error logs, so I'm leaving this issue open.
Thanks for this @Flimm! I think adding more documentation about this would be really great and encourage anyone who comes across this issue to consider PRing it. Thanks!
Do we need more documentation beyond providing the valet log command as an option?
Valet Documentation referencing Log Command
The command output is very detailed:

@josecanhelp I tend to agree. I'm not sure much more is needed for documenting this command.
@Flimm or @mattstauffer can close this issue IMO
Thank you for your time!
Most helpful comment
Do we need more documentation beyond providing the
valet logcommand as an option?Valet Documentation referencing Log Command
The command output is very detailed:
