Versions Compared

Key

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

Site Under Construction by Santiago Aucejo Petzoldt

Table of Contents

Requirements

...

  • a connection to the database which holds the transfer history has to be configured;
  • a JobScheduler with the Job Chains that fill the transfer history tables of the database (not deployed with this setup).

...

  • install the JADE Background Service History Viewer with a preconfigured Jetty;
    • This is recommended for supported platforms.
    • For platforms with limited support the installer can still be used if available. However, the uses is responsible for required changes in the webservlet container start script (start.sh).
  • install the JADE Background Service History Viewer in your own webservlet container
    • This is recommended for users who want to use their individual webservlet container.

After selecting the install path you are prompted to decide whether you want to install the JADE Background Service History Viewer with a preconfigured Jetty or use and already installed servlet container.

...

This configuration will be updated with the credentials specified during the setup routine.

log4j.properties

...

  • The below setting for ${PATH_SET_BY_SETUP} is replaced by the installer with the path of the target directory

 

Panel
borderColorgrey
borderWidth1
borderStylesolid

# Set the log level of the root logger to WARN
log4j.rootLogger=DEBUG, consoleAppender, fileAppender
# Direct log messages to the console
log4j.appender.consoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.consoleAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.consoleAppender.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
# Direct log messages to a file
# Set the file appender to a rolling file appender with a date configuration
log4j.appender.fileAppender=org.apache.log4j.DailyRollingFileAppender
# Set the type of the pattern layout to EnhancedPatternLayout to display local timezone
log4j.appender.fileAppender.layout=org.apache.log4j.EnhancedPatternLayout
# Set the pattern layout
log4j.appender.fileAppender.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm:ss,SSS Z}]: [%t] (%F:%L) - %m%n
# Set the output file an its path
log4j.appender.fileAppender.File=${PATH_SET_BY_SETUP}/JadeHistoryJadeHistoryViewer.log
# Set the append to true, should not overwrite
log4j.appender.fileAppender.Append=true
# Set the immediate flush to true
log4j.appender.fileAppender.ImmediateFlush=true
# Set the threshold to debug mode
log4j.appender.fileAppender.Threshold=debug
# Set the date pattern when the rollover should happen (daily at midnight)
log4j.appender.fileAppender.DatePattern='.'yyyy-MM-dd

This configuration is used by log4j for logging and storing the log files in the location defined by the ${PATH_SET_BY_SETUP} property.

logback.xml

...

  • The below setting for ${PATH_SET_BY_SETUP} is replaced by the installer

 

Panel
borderColorgrey
borderWidth1
borderStylesolid

<configuration debug="true">
<property name="PATH_FOR_LOGFILES" value="${PATH_SET_BY_SETUP}"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%-5level [%d{yyyy-MM-dd HH:mm:ss.SSS}]: [%thread] %logger [%file:%line] - %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${PATH_FOR_LOGFILES}/JadeHistoryViewer.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${PATH_FOR_LOGFILES}/JadeHistory.%d.log</fileNamePattern>
<!-- keep 7 days' worth of history -->
<maxHistory>7</maxHistory>
</rollingPolicy>
<encoder>
<pattern>[%-5level] [%d{yyyy-MM-dd HH:mm:ss.SSS}]: [%thread] %logger [%file:%line] - %msg%n</pattern>
</encoder>
</appender>
<root level="debug">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE"/>
</root>
</configuration>

...