Skip to content

Commit

Permalink
[docs] Adds log4j configuration document
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Aug 23, 2023
1 parent a93f5bc commit cdcd52f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions serving/docs/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,19 @@ export SERVING_OPTS="-Dai.djl.logging.level=debug"
export DEFAULT_JVM_OPTS="-Dlog4j.configurationFile=/MY_CONF/log4j2.xml
```

DJLServing provides a few built-in `log4j2-XXX.xml` files in DJLServing containers.
Use the following environment variable to print HTTP access log to console:

```
export DEFAULT_JVM_OPTS="-Dlog4j.configurationFile=/usr/local/djl-serving-0.23.0/conf/log4j2-access.xml
```

Use the following environment variable to print both access log, server metrics and model metrics to console:

```
export DEFAULT_JVM_OPTS="-Dlog4j.configurationFile=/usr/local/djl-serving-0.23.0/conf/log4j2-console.xml
```

### How to download uncompressed model from S3
To enable fast model downloading, you can store your model artifacts (weights) in a S3 bucket, and
only keep the model code and metadata in the `model.tar.gz` (.zip) file. DJL can leverage
Expand Down

0 comments on commit cdcd52f

Please sign in to comment.