{"id":8362,"date":"2026-03-06T02:32:05","date_gmt":"2026-03-06T02:32:05","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=8362"},"modified":"2026-03-20T09:55:03","modified_gmt":"2026-03-20T09:55:03","slug":"how-to-use-node-js-runtime-logs-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-use-node-js-runtime-logs-at-hostinger\/","title":{"rendered":"How to use Node.js Runtime logs at Hostinger"},"content":{"rendered":"<h2 id=\"Runtime-Logs-for-Node.js-Websites\" data-local-id=\"061f7e1ac320\" data-renderer-start-pos=\"1\"><strong data-renderer-mark=\"true\">Runtime Logs for Node.js Websites<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h2><p data-renderer-start-pos=\"38\" data-local-id=\"4bcb2767bd09\">Runtime logs help you monitor what happens when your Node.js application is running. They show real-time messages generated by your application and the Node.js runtime, which can help you identify errors, track deployments, and understand how your application behaves in production.<\/p><p data-renderer-start-pos=\"324\" data-local-id=\"55dd0d87228e\">In Hostinger&rsquo;s Node.js dashboard, runtime logs provide a centralized place to review these messages and quickly troubleshoot issues.<\/p><h3 id=\"What-Are-Runtime-Logs?\" data-local-id=\"f442dbc9f255\" data-renderer-start-pos=\"459\"><strong data-renderer-mark=\"true\">What Are Runtime Logs?<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h3><p data-renderer-start-pos=\"483\" data-local-id=\"af7312a2c4e6\">Runtime logs are messages produced by your Node.js application while it is running. These logs typically include:<\/p><ul class=\"ak-ul\" data-local-id=\"6d012c88-f84d-472b-8bad-53119a6c95ec\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"600\" data-local-id=\"ba1f30410e72\">Application errors<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"622\" data-local-id=\"11601277a6cc\">Warning messages<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"642\" data-local-id=\"f6e59ff34798\">Informational messages<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"668\" data-local-id=\"93f0ce7ce9a2\">Stack traces<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"684\" data-local-id=\"5f9860fdf555\">Deployment-related events<\/p>\n<\/li>\n<\/ul><p data-renderer-start-pos=\"715\" data-local-id=\"02b7fe591992\">They are especially useful for diagnosing issues that occur <strong data-renderer-mark=\"true\">after a deployment<\/strong>, when your application is already running on the server.<\/p><h3 id=\"How-Runtime-Logs-Look-in-hPanel\" data-local-id=\"a3c08965f5a4\" data-renderer-start-pos=\"853\"><strong data-renderer-mark=\"true\">How Runtime Logs Look in hPanel<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h3><p data-renderer-start-pos=\"888\" data-local-id=\"8b1931e20fac\">Below is an example of the Runtime Logs interface in hPanel:<\/p><div class=\"rich-media-item mediaSingleView-content-wrap image-wide css-1dq76t5\" data-layout=\"wide\" data-width=\"992\" data-width-type=\"pixel\" data-node-type=\"mediaSingle\" data-vc=\"media-single\" data-renderer-start-pos=\"950\" data-media-vc-wrapper=\"true\" data-ssr-placeholder=\"Eb7Gh:EfLS5:z8NN7:qz-Pe:Y6119-0\">\n<div class=\"css-azwjz8\">\n<div class=\"css-vhfmu2\" data-media-badges=\"true\" data-testid=\"media-badges\" data-ssr-placeholder=\"nouWf:Eb7Gh:EfLS5:z8NN7:qz-Pe:Y6119-0\"><\/div>\n<div data-type=\"file\" data-node-type=\"media\" data-width=\"1669\" data-height=\"933\" data-id=\"393cd11f-1d41-4f99-aa4c-b20f34116a4e\" data-collection=\"contentId-2068545600\" data-file-name=\"image-20260304-103615.png\" data-file-size=\"215500\" data-file-mime-type=\"image\/png\" data-alt=\"image-20260304-103615.png\" data-renderer-start-pos=\"951\" data-local-id=\"27c6de6cb546\" data-ssr-placeholder-ignored=\"\" data-context-id=\"2068545600\">\n<div id=\"newFileExperienceWrapper\" class=\"_2rko18qm _vchhusvi _kqswh2mm _ect4ttxp _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmd0i9 _1rquusvi _eg541i5c _mts3kb7n _1ntskb7n _yfmhtlke _5sb1v00u new-file-experience-wrapper\" data-testid=\"media-card-view\" data-media-vc-wrapper=\"true\" data-ssr-placeholder-ignored=\"\">\n<div class=\"_1reo15vq _18m915vq _2rko18qm _1e0c1txw _kqswh2mm _p12f1osq _1bsb1osq _4t3i1osq _c71l1osq media-file-card-view\" data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-source=\"ssr-server\" data-cursor=\"pointer\" data-ssr-placeholder-ignored=\"\" data-test-media-name=\"image-20260304-103615.png\" data-test-progress=\"1\">\n<div class=\"_kqswstnw _1bsb1osq _4t3i1osq _1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o\" data-testid=\"ImageRendererWrapper\" data-ssr-placeholder-ignored=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8363\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/03\/2026-03-06_09-30.png\" alt=\"\" width=\"990\" height=\"547\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/03\/2026-03-06_09-30.png 990w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/03\/2026-03-06_09-30-300x166.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/03\/2026-03-06_09-30-768x424.png 768w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div><p data-renderer-start-pos=\"955\" data-local-id=\"3bb92f46647c\">In this view, you can:<\/p><ul class=\"ak-ul\" data-local-id=\"c387962f-d401-42c5-9721-9eb90141b22a\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"981\" data-local-id=\"0e883084cfdd\">Filter logs by time range<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"1010\" data-local-id=\"eb7d4c8c1b29\">Filter by severity level<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"1038\" data-local-id=\"069effe68655\">View error and issue counters<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"1071\" data-local-id=\"63c4b9ab460e\">See information about the last deployment<\/p>\n<\/li>\n<\/ul><h2 id=\"Information-Available-in-Runtime-Logs\" data-local-id=\"676fd64059c0\" data-renderer-start-pos=\"1117\"><strong data-renderer-mark=\"true\">Information Available in Runtime Logs<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h2><p data-renderer-start-pos=\"1158\" data-local-id=\"403e41e8db40\">Runtime logs contain several types of information that can help diagnose problems.<\/p><h3 id=\"1.-Error-Messages\" data-local-id=\"b92ce92ce0ca\" data-renderer-start-pos=\"1242\"><strong data-renderer-mark=\"true\">1. Error Messages<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h3><p data-renderer-start-pos=\"1261\" data-local-id=\"cbb299bdd5f2\">Errors are the most important entries to check when your application stops working.<\/p><p data-renderer-start-pos=\"1348\" data-local-id=\"6305c32e4ec8\">Example from the logs:<\/p><div class=\"fabric-editor-breakout-mark fabric-editor-block-mark css-p8f2xz\" data-mode=\"wide\" data-has-width=\"true\" data-width=\"760\">\n<blockquote>\n<div class=\"code-block css-y5zsxb\" data-local-id=\"89decad2-933c-4c14-b953-c62e858a75cc\" data-ssr-placeholder=\"7voiQ:EfLS5:z8NN7:qz-Pe:Y6119-0\"><span class=\"prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf\" data-code-lang=\"\" data-ds--code--code-block=\"\" data-testid=\"renderer-code-block\"><code class=\"language-\"><span class=\"\" data-testid=\"renderer-code-block-line-1\" data-ds--code--row=\"\">Error: DATABASE_URL is not defined<\/span><\/code><\/span><\/div>\n<\/blockquote>\n<\/div><p data-renderer-start-pos=\"1408\" data-local-id=\"866f98ba1233\">This indicates that the application expects an environment variable (DATABASE_URL) but it has not been configured.<\/p><p data-renderer-start-pos=\"1526\" data-local-id=\"1372d3eb2859\">These types of errors usually occur when:<\/p><ul class=\"ak-ul\" data-local-id=\"8f19bed1-e125-4876-ac6e-671b4aab262d\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"1571\" data-local-id=\"90b71d019337\">Environment variables are missing<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"1608\" data-local-id=\"e4f07d43b79f\">Application configuration is incorrect<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"1650\" data-local-id=\"ce9d51be21dc\">External services (databases, APIs) cannot be reached<\/p>\n<\/li>\n<\/ul><h3 id=\"2.-Stack-Traces\" data-local-id=\"a0feb62b51dc\" data-renderer-start-pos=\"1708\"><strong data-renderer-mark=\"true\">2. Stack Traces<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h3><p data-renderer-start-pos=\"1725\" data-local-id=\"3e7023a5fafc\">When an error occurs, Node.js often generates a stack trace. A stack trace shows exactly where the error happened in your code.<\/p><p data-renderer-start-pos=\"1856\" data-local-id=\"98e1148303b7\">Example:<\/p><div class=\"fabric-editor-breakout-mark fabric-editor-block-mark css-p8f2xz\" data-mode=\"wide\" data-has-width=\"true\" data-width=\"760\">\n<blockquote>\n<div class=\"code-block css-y5zsxb\" data-local-id=\"e3dc83f3-f958-4a61-947e-7c34cacdd6a8\" data-ssr-placeholder=\"7voiQ:EfLS5:z8NN7:qz-Pe:Y6119-1\"><span class=\"prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf\" data-code-lang=\"\" data-ds--code--code-block=\"\" data-testid=\"renderer-code-block\"><code class=\"language-\"><span class=\"\" data-testid=\"renderer-code-block-line-1\" data-ds--code--row=\"\">at file:\/\/\/home\/...\/src\/db\/db.js:6:9<br>\n<\/span><span class=\"\" data-testid=\"renderer-code-block-line-2\" data-ds--code--row=\"\">at ModuleJobSync.runSync<\/span><\/code><\/span><\/div>\n<\/blockquote>\n<\/div><p data-renderer-start-pos=\"1929\" data-local-id=\"f0f79f1e03cb\">This information helps developers identify:<\/p><ul class=\"ak-ul\" data-local-id=\"3c6366b2-ea51-4bf8-9a36-3aa191f1a746\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"1976\" data-local-id=\"4e434bddbafa\">The file where the error occurred<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2013\" data-local-id=\"009767c38ca1\">The exact line of code causing the issue<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2057\" data-local-id=\"db91c2942505\">The execution path that led to the error<\/p>\n<\/li>\n<\/ul><h3 id=\"3.-Log-Severity-Levels\" data-local-id=\"165fa190b816\" data-renderer-start-pos=\"2104\"><strong data-renderer-mark=\"true\">3. Log Severity Levels<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h3><p data-renderer-start-pos=\"2130\" data-local-id=\"d06daaca0bbd\">Logs can be filtered by severity level, helping you focus on the most important messages.<\/p><p data-renderer-start-pos=\"2221\" data-local-id=\"09d6d56b39c8\">Common severity levels include:<\/p><ul class=\"ak-ul\" data-local-id=\"cbfb8f3e-2ec1-40e0-81f0-5d61004ac809\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"2256\" data-local-id=\"621a44cc6984\"><strong data-renderer-mark=\"true\">Error<\/strong> &ndash; Critical problems that stop the application from working correctly.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2335\" data-local-id=\"593144d64c93\"><strong data-renderer-mark=\"true\">Warning<\/strong> &ndash; Issues that may not break the application but could cause problems.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2416\" data-local-id=\"75b1920a3556\"><strong data-renderer-mark=\"true\">Info<\/strong> &ndash; General information about application activity.<\/p>\n<\/li>\n<\/ul><p data-renderer-start-pos=\"2476\" data-local-id=\"8b5aa575a2f9\">Using severity filters allows you to quickly isolate critical issues.<\/p><h2 id=\"When-Should-You-Use-Runtime-Logs?\" data-local-id=\"a699a9431558\" data-renderer-start-pos=\"2548\"><strong data-renderer-mark=\"true\">When Should You Use Runtime Logs?<\/strong><button class=\"css-x4slh0\" type=\"button\" data-testid=\"anchor-button\" aria-hidden=\"true\"><\/button><\/h2><p data-renderer-start-pos=\"2585\" data-local-id=\"fbfd181e92d7\">Runtime logs are most helpful when troubleshooting issues with a running application.<\/p><p data-renderer-start-pos=\"2674\" data-local-id=\"47109f5694fe\">You should check runtime logs if:<\/p><ul class=\"ak-ul\" data-local-id=\"fdedb99da50d\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"2711\" data-local-id=\"9514a4e7f786\"><strong data-renderer-mark=\"true\">Your website shows an error page<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2747\" data-local-id=\"e6015e345428\"><strong data-renderer-mark=\"true\">Your application fails after deployment<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2790\" data-local-id=\"2e73bcbd1108\"><strong data-renderer-mark=\"true\">Your application cannot connect to external services<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2846\" data-local-id=\"226201b9ad46\"><strong data-renderer-mark=\"true\">Environment variables are misconfigured<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2889\" data-local-id=\"32e9891b89f2\"><strong data-renderer-mark=\"true\">Your application behaves unexpectedly<\/strong><\/p>\n<\/li>\n<\/ul><p data-renderer-start-pos=\"2932\" data-local-id=\"872b97778622\">Logs can reveal warnings or informational messages that explain abnormal behavior and assist you on troubleshooting root cause for the error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js runtime logs usage on Hostinger web and cloud hosting<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[301,158],"tags":[],"class_list":["post-8362","post","type-post","status-publish","format-standard","hentry","category-node-js","category-hpanel"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/8362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=8362"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/8362\/revisions"}],"predecessor-version":[{"id":8890,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/8362\/revisions\/8890"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=8362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=8362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=8362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}