fix typo
organize imports
add file log appender
fix test_client to emit valid JSON