Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It can be useful to increase the log level for HiveMQ or a specific extension. (See here how to configure a separate log level for extensions)
To change the log level simply edit the /opt/hivemq/confg/logback.xml file and adjust the level attribute in the associated <logger>.Using

Instructions

  1. Locate the

...

  1. logback.xml

...

  1. file: This file is located at /opt/hivemq/conf/ folder.

  2. Open the logback.xml file: Use a text editor or IDE to open the logback.xml file for editing.
    please refer following example.

    Code Block
       <root level="${HIVEMQ_LOG_LEVEL:-INFO}">
            <appender-ref ref="FILE"/>
            <appender-ref ref="CONSOLE"/>
        </root>

    to

    Code Block
    <root level="

...

  1. DEBUG">
            <appender-ref ref="FILE"/>
            <appender-ref ref="CONSOLE"/>
    </root>
  2. Save the changes: Once you have made the necessary modifications, save the logback.xml file.

  3. By default, the HiveMQ broker scans this every 60 seconds. You do not need to restart the broker to make this change. You can find <configuration scan="true" scanPeriod="60 seconds"> this in thelogback.xml