How to log only if $upstream_cache_status is not equal to "HIT"

Hello,

Iam trying to find out if there is a way I can have an access logs only
for the objects that did not produce a HIT from the cache (recorded in
the nginx $upstream_cache_status var)

Is this possible?

Thanks and regards,
Joseph