Add a filter function to logger
Correction code is not needed because the left