Add 'sync' command.
Fix logging config.