Using logger in json validation failure