aspnet core log 확인하기
배포시 logs폴더를 생성한다
project.csproj 파일을 수정한다.
<Target Name="CreateLogsFolderDuringCliPublish" AfterTargets="AfterPublish">
<MakeDir Directories="$(PublishDir)logs" Condition="!Exists('$(PublishDir)logs')" />
</Target>
<Target Name="CreateLogsFolderDuringVSPublish" AfterTargets="FileSystemPublish">
<MakeDir Directories="$(PublishUrl)logs" Condition="!Exists('$(PublishUrl)logs')" />
</Target>
배포후 web.config를 수정한다.
<!-- <aspNetCore processPath="dotnet" arguments=".\rc-idp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" /> -->
<aspNetCore processPath="dotnet" arguments=".\rc-idp.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" /> <!--true로 변경-->