This is the wrong way to do it. For custom log structure, your module needs to be a log encoder module, not handler.
This works. You just need to adapt it.
example.com {
log
respond /400 400
respond /200 200
intercept {
@200 {
status 200
}
handle_response @200 {
log_skip
}
}
}