Log 4 cpp refactoring