Similar bug as last prevented config overriding.

Similar bug as last prevented config overriding.
Refactored both appenders.