Can I show my mining debug.log?

I always checked my log like this

docker exec -it sawtooth-validator-default tail -f /var/log/sawtooth/validator-debug.log

but after 1.6 version I can not find debug.log

tail: cannot open ‘/var/log/sawtooth/validator-debug.log’ for reading: No such file or directory
tail: no files remaining

How do I command to view logs??

if you use any toml + docker-compose.yaml configurations, there is no logs.

if you wanna any log files, and first you remove toml configurations in yaml files.

and after you remove your toml configurations,

docker attach sawtooth-validator-default

above commands will give you continuous some logs

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.

See for more ideas.