Skip to content

Commit

Permalink
added log config file description to logging docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Nov 25, 2021
1 parent d8a3176 commit c801299
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,25 @@ The log config can be set by `ACAPY_LOG_CONFIG`.
Example:

```sh
ACAPY_LOG_LEVEL=info ACAPY_LOG_FILE=./acapy.log ACAPY_LOG_CONFIG=./acapy_log.yml ./bin/aca-py start
ACAPY_LOG_LEVEL=info ACAPY_LOG_FILE=./acapy.log ACAPY_LOG_CONFIG=./acapy_log.ini ./bin/aca-py start
```

## Acapy Config File

Following parameters can be used in a configuration file like [this](demo/demo-args.yaml).

```yaml
log-level: CRITICAL
log-level: WARNING
debug-connections: false
debug-presentations: false
```
Warning: debug-connections and debug-presentations must not be used in a production environment as they log also credential claims values.
Both parameters are independent of the log level, which means:
Also if log-level is set to WARNING, connections and presentations will be logged like in debug log level.
## Log config file
Find an example in [default_logging_config.ini](aries_cloudagent/config/default_logging_config.ini).
You can find more detail description in the [logging documentation](https://docs.python.org/3/howto/logging.html#configuring-logging).

0 comments on commit c801299

Please sign in to comment.