Where do logs go when running ASP.NET Core on IIS 7.5? -
i'm posting , answering it, because left me stumped long time. have following line in web.config
:
<aspnetcore processpath="dotnet" arguments=".\xxx.server.dll" stdoutlogenabled="true" stdoutlogfile=".\logs\stdout" forwardwindowsauthtoken="false" />
so apparently, should logging logs\stdout
, when look, there's nothing there. went on wild goose chase, searching whole disk named 'log' (that returned much) or 'stdout' (that returned nothing), , still couldn't figure out.
you check event viewer on machine -> application see if there errors logged, explain why log files aren't being generated.
however, probable reason iis doesn't have permission write log folder.
- right click on folder -> security
- ensure iis_isurs user has following permissions: read , execute, list, write (potentially write missing default)
Comments
Post a Comment