Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevred committed Dec 18, 2024
1 parent ab34a51 commit 552515b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions jena-fuseki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ heap (default: 1200 MiB), set the `JVM_ARGS` environment with `-e`:

docker run -p 3030:3030 -e JVM_ARGS=-Xmx2g stain/jena-fuseki

## Customize logging

The Docker container outputs logs to stdout which can be read by using docker logs CONTAINER_ID.
The log entries follows the pattern of `09:44:30 INFO Entrypoint :: Initializing Apache Jena Fuseki`.
The first component is the timestamp of the event and it can changed with the LOG_FORMAT variable.

For example if you were to start the container like this:

```docker run -p 3030:3030 -e LOG_FORMAT="%y-%m-%d %H:%M:%S %% %Z" stain/jena-fuseki```

Then you would see log entries like theese:

```24-12-14 09:44:30 % UTC INFO Entrypoint :: Initializing Apache Jena Fuseki```

Please read the man page for date(1) for information about strfttime format.

## Data persistence

Expand Down
2 changes: 1 addition & 1 deletion jena-fuseki/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set -e
if [ ! -z "$LOG_FORMAT" ] && ! echo -n "$LOG_FORMAT" | grep -qE '^((%[aAbBcdHIjmMpSUwWxXyYZFT%])|[^%])+$'; then
invalid_strfttime_format=$LOG_FORMAT
unset LOG_FORMAT
log "WARNING" "Invalid strfttime date format specifier in '$invalid_strfttime_format'."
log "WARN" "Invalid strfttime date format specifier in '$invalid_strfttime_format'."
fi

if [ ! -f "$FUSEKI_BASE/shiro.ini" ] ; then
Expand Down

0 comments on commit 552515b

Please sign in to comment.