mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00

Make it possible for a hub to reload a config automatically when it changes without being restarted. Prevent the auto-calibration on first install from being stomped by the app. Allow updating the hub software via the app.
22 lines
797 B
XML
22 lines
797 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<property name="log.pattern" value="%date %-5level %logger{0} - %message%n"/>
|
|
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>/opt/tomcat/logs/log.txt</file>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
<fileNamePattern>/opt/tomcat/log/log.%d{yyyy-MM-dd}.%i.txt</fileNamePattern>
|
|
<maxFileSize>20MB</maxFileSize>
|
|
<maxHistory>20</maxHistory>
|
|
</rollingPolicy>
|
|
<encoder>
|
|
<pattern>${log.pattern}</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<logger name="com.lanternsoftware" level="DEBUG"/>
|
|
|
|
<root level="OFF">
|
|
<appender-ref ref="FILE"/>
|
|
</root>
|
|
</configuration> |