Succeed using directly it :
log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local]...
log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local]...