Runtime V2 not showing logs
Hi,
I just switch to the new runtime and the logs are not appearing in the deploy logs or logs page.
When I expend with the plus icon, I can see the correct metadata.
project id 34849d22-d685-4e73-8858-fbd4fe42ea65
Solution:Jump to solution
sorry for the late reply, but all known logging issues on the v2 runtime have been fixed
9 Replies
Project ID:
34849d22-d685-4e73-8858-fbd4fe42ea65
can you show a screenshot of the expanded logs?
also what logger library you are using and the formatting involved with that
update: someone else had the same issue and with their help i was able to reproduce, if your issue is the exact same as theirs it means you are using json structured logging and railway is not picking up your
message
attribute, but funny enough it will pick up a msg
attribute and display that attribute as your message.
I will bring this up to the team.I'm using nestjs + wintson with the following formatting
and I can confirm, on the legacy runtime, the message that was showing on the log line was the one with the
message
key in json format. Since I'm mostly relying on newrelic for all my logs anyway, I'm not gonna change anything on my logger, will wait to hear from you/team back about thatI'm sure this would be a super easy fix
yep, will take a look when I can
haha sorry not for you, I mean for the team, you aren't doing anything wrong
the team is hands on keyboard to fix the logging issue
update: one half of this problem has been fixed, structured logs with a message attribute will not be blank anymore, the missing logs are still being worked on
Sweet! I can confirm, it's showing again for me
will update further when I have more information about the outright missing logs
update: the missing logs are fixed, but theres a new issue that arose with the possibility of them being not shown in the correct order
Solution
sorry for the late reply, but all known logging issues on the v2 runtime have been fixed