logging to stderr instead of stdout
This commit is contained in:
@@ -26,6 +26,8 @@ switch
|
||||
- change from ZUGFeRDExporter to IZUGFeRDExporter
|
||||
- javadoc export
|
||||
- have visualizer
|
||||
- validate as library doc
|
||||
- unify loggers
|
||||
|
||||
|
||||
### 2.0 still todo
|
||||
@@ -33,14 +35,11 @@ switch
|
||||
- verapdf as prevalidation?
|
||||
- visualization? zugferdvisualizer?
|
||||
- new sample invoice
|
||||
- validate as library doc
|
||||
- prompt for source file for validation has to be pdf
|
||||
- be able to disable "source pdf set to timeout"
|
||||
- automated tests zuv/verapdf validate created library test files
|
||||
- unify loggers
|
||||
- *visualizer to work with Extended profile
|
||||
- *visualizer tests
|
||||
- *validator not to log to stdout
|
||||
- *validator not to XR error on ZF files (only notices)
|
||||
- *from A3 does not seem tow ork see mustangreaderwriteredgetest:testedgeexport
|
||||
- xmp errors may not show correctly in log
|
||||
@@ -50,7 +49,6 @@ switch
|
||||
- confirm correct generation from pdf/a3 files zf2edgetest
|
||||
- *correctiontest exports zf1+zf2?
|
||||
- *use validator in tests of library
|
||||
- *invoiceprovider currencyid missing
|
||||
- *USt 0% wird aus invoice-klasse noch nicht sauber abgefangen
|
||||
- *ownContact sollte in einen Contact schreiben
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<configuration>
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<target>System.err</target>
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
@@ -24,6 +25,6 @@
|
||||
<!-- Configure so that it outputs to both console and log file -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="FILE" />
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
||||
30
library/src/main/resources/logback.xml
Normal file
30
library/src/main/resources/logback.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<configuration>
|
||||
|
||||
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<target>System.err</target>
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- Daily rollover -->
|
||||
<fileNamePattern>log/ZUV-%d{yyyy-MM}.log</fileNamePattern>
|
||||
|
||||
<!-- Keep 5 years worth of history -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Configure so that it outputs to both console and log file -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="FILE" />
|
||||
<appender-ref ref="STDERR" />
|
||||
</root>
|
||||
</configuration>
|
||||
@@ -1,8 +1,9 @@
|
||||
<configuration>
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<target>System.err</target>
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
@@ -24,6 +25,6 @@
|
||||
<!-- Configure so that it outputs to both console and log file -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="FILE" />
|
||||
<!-- appender-ref ref="STDOUT" /-->
|
||||
<!-- appender-ref ref="STDERR" /-->
|
||||
</root>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user