shell: improved logging