Josh Larson
Sending Laravel logs to Railway's logger
@Pepijn I ended up sending my logs to a 3p store manually :/ I was just thinking though that you could theoretically wire up a multi-process manager and run
php artisan pail
to tail the logs to stdout along with the normal output. I haven't tried it yet though10 replies
Sending Laravel logs to Railway's logger
hmm chatgpt confirms my suspicions about stdout:
Correct, you cannot directly read from /dev/stdout of another process as if it were a regular file or a pipe that you can open and read from. /dev/stdout is a symbolic link to /proc/self/fd/1, which represents the standard output file descriptor of the current process. Thus, when a process writes to /dev/stdout, it's writing to its own standard output stream, and this stream is not directly accessible to other processes for reading in the way that a file or named pipe might be.
10 replies