-
Notifications
You must be signed in to change notification settings - Fork 23
Write a text to the Node RED log
bartbutenaers edited this page Aug 14, 2018
·
1 revision
A text in the log can provide a user with lots of useful information, which can be a tremendous help in understanding what is going on. To be able to determine the severity of the logged text, a number of log levels are available:
- fatal: errors which make the application unusable.
- error: errors which are only fatal for a particular request.
- warn: problems which are non fatal, so just warn the user.
- info: information about the normal execution of the application.
- debug: detailed information (more detail as 'info').
- trace: very detailed information (more detail as 'debug').
- off: no log messages at all
The log texts will be written in the Node-RED log. Texts with log level 'error' and 'warn' will also be displayed in the flow editor's debug panel.
The following animation will write a warning 'my warning text' to the console and the debug panel: