fix double free exception
config: support for boolean keys
Consider configuration while auto re-logging