diff options
Diffstat (limited to 'pdf-over-gui/src/main/resources')
-rw-r--r-- | pdf-over-gui/src/main/resources/log4j.properties | 36 | ||||
-rw-r--r-- | pdf-over-gui/src/main/resources/logback.xml | 38 |
2 files changed, 38 insertions, 36 deletions
diff --git a/pdf-over-gui/src/main/resources/log4j.properties b/pdf-over-gui/src/main/resources/log4j.properties deleted file mode 100644 index 489bc2b2..00000000 --- a/pdf-over-gui/src/main/resources/log4j.properties +++ /dev/null @@ -1,36 +0,0 @@ -log4j.rootLogger=TRACE, STDOUT, LOGFILE - -# STDOUT appender -log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender -log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout -log4j.appender.STDOUT.layout.ConversionPattern=%-5p | %d | %t | %c %x- %m%n -log4j.appender.STDOUT.encoding=UTF-8 -log4j.appender.STDOUT.Threshold = DEBUG - -log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender -log4j.appender.LOGFILE.file=${user.home}/.pdf-over/pdf-over.log -log4j.appender.LOGFILE.MaxFileSize=100KB -log4j.appender.LOGFILE.MaxBackupIndex=10 -log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout -log4j.appender.LOGFILE.layout.ConversionPattern=%-5p | %d | %t | %c %x- %m%n -log4j.appender.LOGFILE.encoding=UTF-8 -log4j.appender.LOGFILE.Threshold = INFO - -log4j.logger = INFO - -# DETAIL LEVELS PDF-Over -log4j.logger.at.asit.pdfover = DEBUG -log4j.logger.at.gv.egiz.pdfas = WARN -log4j.logger.at.knowcenter = WARN -log4j.logger.at.knowcenter.wag.egov.egiz.ldap = WARN -log4j.logger.org.apache.commons.httpclient = ERROR -log4j.logger.httpclient.wire = ERROR - - -# DETAIL LEVELS PDF-AS -log4j.logger.org.pdfbox = DEBUG -log4j.logger.org.apache.pdfbox.util = DEBUG -log4j.logger.at.gv.egiz.pdfas = DEBUG -log4j.logger.at.knowcenter = DEBUG -log4j.logger.at.knowcenter.wag.egov.egiz.ldap = DEBUG -log4j.logger.org.apache.commons.httpclient = ERROR diff --git a/pdf-over-gui/src/main/resources/logback.xml b/pdf-over-gui/src/main/resources/logback.xml new file mode 100644 index 00000000..e9d8bd6f --- /dev/null +++ b/pdf-over-gui/src/main/resources/logback.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- Built in 2022-02-17 04:16 by logback-translator --> +<!-- --> +<!-- For sponsoring SLF4J/logback/reload4j projects see --> +<!-- https://github.com/sponsors/qos-ch --> +<!-- --> +<configuration> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoding>UTF-8</encoding> + <encoder> + <pattern>%-5p | %t @ %c{40} | %m%n</pattern> + </encoder> + </appender> + <appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> + <encoding>UTF-8</encoding> + <file>${user.home}/.pdf-over/pdf-over.log</file> + <encoder> + <pattern>%-5p | %d | %t @ %c | %m%n</pattern> + </encoder> + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> + <level>INFO</level> + </filter> + <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> + <maxIndex>10</maxIndex> + <FileNamePattern>${user.home}/.pdf-over/pdf-over.log.%i</FileNamePattern> + </rollingPolicy> + <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> + <MaxFileSize>100KB</MaxFileSize> + </triggeringPolicy> + </appender> + <logger name="at.asit.pdfover" level="INFO"/> + <root level="WARN"> + <appender-ref ref="STDOUT"/> + <appender-ref ref="LOGFILE"/> + </root> +</configuration>
\ No newline at end of file |