-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No log output on Azure Web Site #773
Comments
Has this issue been resolved? or any work around? |
Trace.WriteLine won't work in azure because ASP.NET sites don't read web.config (no config hierarchy), |
@mgolois Workaround I'm using atm... Install Add this code: if (System.IO.Directory.Exists("D:\\home\\LogFiles\\application\\"))
{
loggerFactory.AddSerilog(new LoggerConfiguration().WriteTo.File("D:\\home\\LogFiles\\application\\YourAppName.txt", fileSizeLimitBytes: 20 * 1024 * 1024).CreateLogger());
} Inside Then you can connect with FTP client and download file... Unfortunately it's saying file used by another process(I should probably find way for Serilog to share read access...). But for now I prefer to just open Azure console and do "cp YourAppName.txt LogFileCopy.txt" and download LogFileCopy.txt... I also noticed that Log Streaming was working... But it's not working anymore at this point(maybe since I tried to access via FTP) :( |
This issue is being closed because it has not been updated in 3 months. We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate. |
* Added support for middleware activation via IMiddlewareFactory - IMiddlewareFactory and IMiddleware are new extensiblity points for activating and authoring middleware. Under the covers, middleware is still very much just a function. This just provides a nice way to get a per request activated middleware instance that is created and released via the IMiddlewareFactory. The caveats are that middleware needs to be registered in the container (by default) and that not possible to explicitly pass arguments directly via UseMiddleware. - Added tests
This doesn't seem to repro anymore after fixing #772. Adding tests anyway.
The problem is that the new HTML rewrite pass was traversing into attributes of all kinds and would turn any HTML content inside those attributes into elements where possible. The solution is to not do that.
I'm testing out deploying an asp.net 5 app on Azure websites, but I'm having trouble getting any log output from the application. The azure docs say you just need to write to System.Diagnostics.Trace, but that doesn't seem to work. I tried Console.WriteLine as well for good measure, but no dice.
Steps to reproduce:
Is this something that should be working? I may be missing something in the Azure config, but I've tried pretty much everything without much success.
The text was updated successfully, but these errors were encountered: