R
Railway

✋|help

Winston logs not appearing in deployment logs

Llimas.dev8/26/2023
In my node.js deployment if I do a console.log it appears normally in deployment logs, but using winston with info logging level messages never appear.

Locally the log messages appear normally in the console.

What could be causing this issue?
Solution:
you will only be able to see logs in the deployment logs if you log directly to stdout
Jump to solution
Llimas.dev8/26/2023
f42e5e62-f103-49b3-a899-85dc38cba0b7
Solution
BBrody8/26/2023
you will only be able to see logs in the deployment logs if you log directly to stdout
Llimas.dev8/26/2023
Ohh I see, I was expecting the library to do that since I configured to log to console, but let me double check if not I'll just refactor to use console.log, thanks!
BBrody8/26/2023
sorry about that, i dont know why they sent that
yeah logging packages can do funky things
Llimas.dev8/26/2023
I changed the output from json to simple and that does work, so I'm guessing output JSON is what is not working 🙂
BBrody8/26/2023
well the format doesn't matter, it's how it's sent to stdout
make sure there's no buffer thing going on?
if it's json the library might try to stream it to stdout, and that's not gonna work
Llimas.dev8/26/2023
Yeah, I'll keep trying different things but at least for now seeing the output even in plain is good enough, thanks a lot for your help, have an awesome weekend 😄
BBrody8/26/2023
no problem! you as well, keep me updated though!

Looking for more? Join the community!

Recommended Posts
deploy logs say nuxt "start" is an unknown command. Production and development sites both crashed.😫CMD Line accessI freaking swear I hate this so much I JUST WANT TO BE ABLE TO USE THE COMMAND LINE <:sadcat:7868689Laravel cron jobsHow can I run php artisan schedule:work every minute?Postgres drops connection when inactive, is this by default?I'm developing a node app using AdonisJS@5 and on a prolonged inactivity period (more than 5 hours) Fontconfig to canvasHi, I've been using the node-canvas in default railway when I use that, only libuuid and libGL are ivolumehey guys! quick question, I've got a golang project. I need it to create a json file on railway and system ran out of memoryCan someone help me? When I try to run my react app i get this error message. > tuya_react_frontend@Litestar command not foundHey all apologies for the possibly silly question. I am looking to deploy this repo: https://github.save temporary archivesCan i save temporary pdfs to a back-end host ? I'm trying to save a pdf file from a client upload bHow to host websockets?This is my first time hosting socket server, how can i do that on railway? I docs there are only webI cannot use opencv2 and received ImportError: libgl.so.1 cannot open shared object file no such filCan anyone help me with that ??LibreofficeHi I need libreoffice installed to use in my code. I attempted using the below nixpacks.toml ``` [Random app crash, no logs or other indicatorWhen trying my healtcheck I get random crashes, no recent deploy was made, I don't see any logs on mModify build commandHow would I modify the build command so it does a pip install of `psycopg2` ? I was told to remove tPayment method removalHey, how do I remove my payment method? I opted in for a credit subscriptions but still see my crediDeploying crashedHello, i'm facing a problem when deploying my spring boot application to railway, my application worInternal server error when accessing TypebotI noticed that since yesterday the new installations with the Typebot template present the error IntRAILWAY_PUBLIC_DOMAIN replaces RAILWAY_STATIC_URLHi team, we've been hunting down a bug with our app today, occurring on many PR Environments and it'My Subscription issueHello dear support guys: I found that I have been downgraded to No Subscription.. If my memory is rIs it normal for hello world json to return in 600ms? - GO FIBER