nedhmn
TRIALOP
a year ago
testing a service. deploy logs are showing with level error in railway's logs tab, but the logs my service is printing are info.
6 Replies
a year ago
those logs are being printed to stderr, thus they are being treated as error logs
so, is my solution to print it to stdout? to my understanding, stderr is for logging at all levels. but i suppose there's no hard rules in this.
a year ago
print to stdout, or much preferably, print to anything and use JSON logging, then we can pick up the level attribute and colour the logs properly from debug to error