Using logger in json validation fail