Thread-safe logging
config improvements