Josh Larson
Josh Larson
RRailway
Created by Josh Larson on 2/5/2024 in #✋|help
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 though
10 replies
RRailway
Created by Josh Larson on 2/5/2024 in #✋|help
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
RRailway
Created by Josh Larson on 2/5/2024 in #✋|help
Sending Laravel logs to Railway's logger
hmmm yeah i'm gonna try on my local machine to see how writing to stdout behaves 🤔
10 replies
RRailway
Created by Josh Larson on 2/5/2024 in #✋|help
Sending Laravel logs to Railway's logger
7605ac5c-d0a3-4cfb-a00a-49878fd419a8
10 replies