We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] Add option to log to seperate folder/file
This would be very helpful!
The text was updated successfully, but these errors were encountered:
That's already possible with the configuration in the logback.xml file.
<appender name="MSG-LOG-EXT" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${hivemq.log.folder}/msg-log-ext.log</file> <append>true</append> <encoder name="JSON-ENCODER" class="net.logstash.logback.encoder.LogstashEncoder"> <timeZone>UTC</timeZone> <timestampPattern>yyyy-MM-dd'T'HH:mm:ss.SSS'Z'</timestampPattern> <fieldNames> <timestamp>time</timestamp> <logger>[ignore]</logger> <version>[ignore]</version> <levelValue>[ignore]</levelValue> <thread>[ignore]</thread> </fieldNames> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- daily rollover --> <fileNamePattern>${hivemq.log.folder}/msg-log-ext.%d{yyyy-MM-dd}.log</fileNamePattern> <!-- keep 30 days' worth of history --> <maxHistory>30</maxHistory> </rollingPolicy> </appender> <logger name="com.hivemq.extensions.log.mqtt" level="INFO" additivity="false"> <appender-ref ref="MSG-LOG-EXT"/> </logger>
Sorry, something went wrong.
No branches or pull requests
[feature request] Add option to log to seperate folder/file
This would be very helpful!
The text was updated successfully, but these errors were encountered: