Skip to content

Commit

Permalink
Corrected Logging instruction for wrappers READ.me.
Browse files Browse the repository at this point in the history
Signed-off-by: artem.ivanov <[email protected]>
  • Loading branch information
Artemkaaas committed Dec 12, 2018
1 parent f6a78a6 commit d0b53ec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ fn _print_help() {
println_acc!("\tLoad plugins in Libindy.");
println_acc!("\tUsage: indy-cli --plugins <lib-1-name>:<init-func-1-name>,...,<lib-n-name>:<init-func-n-name>");
println!();
println_acc!("\tInit logger according to a config file.");
println_acc!("\tInit logger according to a config file. \n\tIndy Cli uses `log4rs` logging framework: https://crates.io/crates/log4rs");
println_acc!("\tUsage: indy-cli --logger-config <path-to-config-file>");
println!();
}
Expand Down
3 changes: 3 additions & 0 deletions vcx/wrappers/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ The jar will be present in `indy-sdk/vcx/wrappers/java/vcx/build/libs`
- run `./gradlew clean assemble --project-dir=android` in folder `indy-sdk/vcx/wrappers/java/vcx`

Aar will be present in `indy-sdk/vcx/wrappers/java/vcx/android/build/outputs/aar`

#### Logging
The Java wrapper uses slf4j as a facade for various logging frameworks, such as java.util.logging, logback and log4j.
6 changes: 5 additions & 1 deletion vcx/wrappers/python3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ python3 generateDocs.py
* A directory will be created locally `./docs` which contains subdirectories 'vcx' and within that 'api'. Html files are generated and put here that give details on each api function.

### Example use
For the main workflow example check [Python demo](https://github.com/hyperledger/indy-sdk/tree/master/vcx/wrappers/python3/demo).
For the main workflow example check [Python demo](https://github.com/hyperledger/indy-sdk/tree/master/vcx/wrappers/python3/demo).

#### Logging
The Python wrapper uses default Python logging module. So, to enable logs you need just to configure its usual way.
Note: there is an additional log level=0 that is equal to `trace` level.
7 changes: 4 additions & 3 deletions wrappers/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ Then copy the resulting `libindy.so` to `./lib/`.
Then run

mvn clean install
#### Troubleshooting
Use environment variable `RUST_LOG={info|debug|trace}` to output logs of Libindy.

#### Logging
The Java wrapper uses slf4j as a facade for various logging frameworks, such as java.util.logging, logback and log4j.

#### Troubleshooting
If your application that uses libindy crashes with a Null Pointer Exception then probably the libindy shared library could
not be loaded properly. If you have build libindy from source then either put the resulting shared library where your
operating system searches for shared libraries or set appropriate environment variables to help the OS's loader to find them.
Expand Down
5 changes: 3 additions & 2 deletions wrappers/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ Then run
### Example use
For the main workflow examples check tests in demo folder: https://github.com/hyperledger/indy-sdk/tree/master/wrappers/python/tests/demo

#### Troubleshooting
Use environment variable `RUST_LOG={info|debug|trace}` to output logs of Libindy.
#### Logging
The Python wrapper uses default Python logging module. So, to enable logs you need just to configure its usual way.
Note: there is an additional log level=0 that is equal to Libindy `trace` level.

0 comments on commit d0b53ec

Please sign in to comment.