Versions Compared

Key

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

Newspaper process monitor

The processmonitor is a deployable meant to run inside a Tomcat.

Files

Service war file:

httpsThe statistics module consists of two parts

  1. An autonomous component that generates statistics output
  2. A simple webpage to display the generated statistics

Files

The distribution tar-ball::

http://sbforge.org/nexus/content/repositories/releases/dk/statsbiblioteket/newspaper/processnewspaper-monitor-frontendstatistics/1.43/processnewspaper-monitorstatistics-frontend-1.4.war

Configuration

Deployment descriptor

Code Block
<Context>
    <!-- Logback config loading -->
	<Parameter name="CONFIGDIR" value="path/to/dir/that/contains/logback.xml/" override="false"/>
    <!-- Application configuration -->
	<Parameter name="contextConfigLocation" value="file://${user.home}/path/to/ApplicationContext.xml" override="false"/>
</Context>

 

Logback.xml example

Code Block
<configuration>
  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>logs/processMonitor.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <!-- daily rollover -->
      <fileNamePattern>logs/processMonitor.%d{yyyy-MM-dd}.log</fileNamePattern>

      <!-- keep 30 days' worth of history -->
      <maxHistory>30</maxHistory>
    </rollingPolicy>

    <append>true</append>
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>
        
  <root level="INFO">
    <appender-ref ref="FILE" />
  </root>
</configuration>

 

Application configuration file

...

3-package.tar.gz

Configuration

Highlevel description:

https://github.com/statsbiblioteket/newspaper-statistics/blob/newspaper-statistics-1.3/README.md

Changelog

Change log can be seen on github:

https://raw.githubgithubusercontent.com/statsbiblioteket/newspaper-digitisation-process-monitorstatistics/newspaper-digitisation-processstatistics-monitor-1.43/CHANGELOG.md