You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/troubleshooting.rst
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,58 @@ If you already have a stack trace but need to decode it, you can use the `ESP St
112
112
113
113
This tool runs entirely in your browser - no data is sent to any server, ensuring your firmware and debug information remain private.
114
114
115
+
Adjusting Log Levels for Debugging
116
+
-----------------------------------
117
+
118
+
When troubleshooting issues with your ESPHome device, increasing the log level can provide more detailed information about what's happening internally. This is particularly useful for diagnosing component-specific problems or understanding the data flow between components.
119
+
120
+
Setting Global Log Level
121
+
~~~~~~~~~~~~~~~~~~~~~~~~
122
+
123
+
To increase the verbosity of logs globally, adjust the ``level`` in your :doc:`logger </components/logger>` configuration:
124
+
125
+
.. code-block:: yaml
126
+
127
+
logger:
128
+
level: VERBOSE # or VERY_VERBOSE for maximum detail
129
+
130
+
Available log levels from least to most verbose:
131
+
132
+
- ``NONE`` - No messages logged
133
+
- ``ERROR`` - Only errors
134
+
- ``WARN`` - Warnings and above
135
+
- ``INFO`` - Informational messages and above
136
+
- ``DEBUG`` - Debug messages and above (default)
137
+
- ``VERBOSE`` - Detailed debug messages and above
138
+
- ``VERY_VERBOSE`` - All internal messages including data bus traffic
139
+
140
+
.. warning::
141
+
142
+
Using ``VERY_VERBOSE`` can significantly slow down your device and may cause connectivity issues due to the volume of log messages generated. Use it only for short debugging sessions.
143
+
144
+
ESP-IDF Framework Log Level
145
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
146
+
147
+
When using the ESP-IDF framework on :doc:`ESP32 </components/esp32>`, you can also adjust the framework's internal log level to get more detailed information from the underlying system:
You can also configure log levels for specific components to reduce noise or get more detail from individual components. See the :ref:`logger manual tag-specific log levels <logger-manual_tag_specific_levels>` documentation for detailed information and examples.
162
+
163
+
.. important::
164
+
165
+
The global log level determines which messages are compiled into the binary. Component-specific log levels can only reduce verbosity, not increase it beyond the global level. For example, if the global level is ``INFO``, setting a component to ``DEBUG`` will have no effect.
0 commit comments