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.

How can I turn-on DEBUG logs, as old way, e.g.“creditcoin-~~~.yaml”?
Should I edit toml files as following reference?

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).

1 Like

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.

Change the entry point line from:

sawtooth-validator \


sawtooth-validator -vv \

1 Like

It works! Great!
Thank you, will.
Now I can make some scripts for easy maintenance.