-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syslog logging of kitodo active mq client
- Loading branch information
1 parent
4e1874f
commit 15d127e
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ FROM ocrd/core:latest | |
|
||
MAINTAINER [email protected] | ||
|
||
ARG KITODO_MQ_CLIENT_VERSION=0.1 | ||
ARG KITODO_MQ_CLIENT_VERSION=0.2 | ||
|
||
ENV HOME=/ | ||
|
||
|
@@ -26,9 +26,13 @@ RUN apt-get update && \ | |
# configure writing to ocrd.log for profiling | ||
COPY ocrd_logging.conf /etc | ||
|
||
# add activemq log4j properties | ||
COPY kitodo-activemq-client-log4j2.properties /opt/kitodo-activemq-client/log4j2.properties | ||
ENV ACTIVEMQ_CLIENT_LOG4J2 /opt/kitodo-activemq-client/log4j2.properties | ||
|
||
# add ActiveMQ client library | ||
ADD https://github.com/markusweigelt/kitodo-activemq-client/releases/download/${KITODO_MQ_CLIENT_VERSION}/kitodo-activemq-client-${KITODO_MQ_CLIENT_VERSION}.jar /opt | ||
ENV ACTIVEMQ_CLIENT /opt/kitodo-activemq-client-${KITODO_MQ_CLIENT_VERSION}.jar | ||
ADD https://github.com/markusweigelt/kitodo-activemq-client/releases/download/${KITODO_MQ_CLIENT_VERSION}/kitodo-activemq-client-${KITODO_MQ_CLIENT_VERSION}.jar /opt/kitodo-activemq-client | ||
ENV ACTIVEMQ_CLIENT /opt/kitodo-activemq-client/kitodo-activemq-client-${KITODO_MQ_CLIENT_VERSION}.jar | ||
RUN chmod go+r $ACTIVEMQ_CLIENT | ||
|
||
# run OpenSSH server | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
status = warn | ||
# Name of the configuration | ||
name = KitodoActiveMQClientLog4j2Config | ||
|
||
# Console appender configuration | ||
appender.console.type = console | ||
appender.console.name = ConsoleAppender | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
|
||
# Syslog appender configuration | ||
appender.syslog.type = Syslog | ||
appender.syslog.name = SyslogAppender | ||
appender.syslog.layout.type = PatternLayout | ||
appender.syslog.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
appender.syslog.host = localhost | ||
appender.syslog.port = 514 | ||
appender.syslog.protocol = UDP | ||
appender.syslog.facility = LOCAL0 | ||
|
||
rootLogger.level = info | ||
rootLogger.appenderRef.stdout.ref = ConsoleAppender | ||
rootLogger.appenderRef.SyslogAppender.ref = SyslogAppender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters