# Node-red is logging messages with incorrect severity

**URL:** <https://discourse.nodered.org/t/node-red-is-logging-messages-with-incorrect-severity/31726>\
**Category:** General\
**Created:** [19 August 2020 12:35 UTC](https://discourse.nodered.org/t/node-red-is-logging-messages-with-incorrect-severity/31726 "2020-08-19T12:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaquu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shaquu/32/9701_2.png) [@Shaquu](https://discourse.nodered.org/u/Shaquu)\
**Post date:** [19 August 2020 12:35 UTC](https://discourse.nodered.org/t/node-red-is-logging-messages-with-incorrect-severity/31726/1 "2020-08-19T12:35:57Z")

</div>

Hi, I have noticed that node-red logs redirected to syslog are using incorrect severity.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/7/47abc634cc06bc4f641bbe3008581bbc799e42a3.png)

As you see some records have [info] in message and are under info severity.  
But when I triggered error (type error in function node) these logs are with severity info and I think they should be under error (as they have [error] in message but are also actual errors.

Is there anything we can do?

Or can it be done with some custom logger?

What is the rule in node-red?  
Does it always log under info?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [20 August 2020 07:27 UTC](https://discourse.nodered.org/t/node-red-is-logging-messages-with-incorrect-severity/31726/2 "2020-08-20T07:27:02Z")

</div>

The default Node-RED logger writes all events to standard out - so will appear as info messages to syslog.

You'd have to write a custom logger to write error messages to stderror if you wanted something different.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 October 2020 07:27 UTC](https://discourse.nodered.org/t/node-red-is-logging-messages-with-incorrect-severity/31726/3 "2020-10-19T07:27:09Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
