How to generate the build log

We are using Azure DevOps to build a .netcore application. To build the API using the DotNetCoreCLI@2 task. Example as below.

  • task: DotNetCoreCLI@2
    displayName: ‘Build API’
    projects: ‘(projectpath)/(BuildProject)’
    arguments: --configuration $(buildConfiguration)

can you tell me how to add “/p:reportanalyzer=true /v:d > build.log” option to the above task to generate the build log?