By default, we’ve enabled storing the logs in Docker only and not duplicating them in the container /var/log/sawtooth directory.
You can also do something like: docker logs sawtooth-validator 2>&1
or combine it with grep like this: docker logs sawtooth-validator 2>&1 | grep 'WARNING'
If you want the full log files, you can do this: docker inspect --format='{{.LogPath}}' sawtooth-validator and it’ll return the path to the docker log file, e.g. /docker/containers/c6c418004a0fe83a55e0b5a6fbdce7309de403692e5e61c2aa4b05b38d947508/c6c418004a0fe83a55e0b5a6fbdce7309de403692e5e61c2aa4b05b38d947508-json.log
You could do that, or just remove the secret sections from the REST API and Validator containers in the docker-compose.yaml file (Causing the Sawtooth containers to use the default logging configuration).
Thanks for your reply.
I did it, but it only shows Warning message.
No Debug or Info messages is displayed, as the old one.
How can I enable Debug or Info message?
I edited toml files as the reference of hyperledger above, but failed.