Now what i would like to do is save all the log from log4net to azure table storage(azure storage service) .
In all the post it was mentioned that to set up config file for log4net in
SERVICECONFIGURATION.CSFG but when i try to set up configuration in service configuration for log4net ,the project doesn't compile.please help me on this to configure service configuration for log4net .
SO i am stuck up in setting up log4net confing file, and specify the config
file in ServiceConfiguration.cscfg and setting up DiagnosticMonitor and log4net in OnStart method of WebRole.cs
Any tutorial for setting up log4net in windows azure will be very helpful.
Did you find out the solution for your problem. If you find the solution could you please share it, We are also having similar problem, as we are moving our web application to Azure, and used log4net in the applicaiton.
We are in the process of moving our web application to Cloud, and totally depended on log4net for logging at the application level. We are trying with the prototype applications how to configure the log4net in our applicaiton after moving to windows
azure , with minimal changes to our exisiting code.
Could you please post completed end to end application, some sort of code how to configure in the exisiting web applcation, it will be great help for us.
I will try it from my side and contact you for any issues.
It would be greate if you could provide us with sample.
I still have some questions, usually if we use log4net we will configure to spool the files up to some gb to trace the logs say we can set the configuration in log4net to create a file after 10 gb of data.
My question are:
1.can we transfer the file to blob storage after creating that file (OR) Shall we need to configure the settings to write to a azure table with the message using log4net.
2.Is there any inbuilt UI interface is available in azure portal to study the logs after saving to the azure tables, with out writing custom code to analyze the logs.
We can transfer these log files to blob not manually the Azure Diagnostics monitor would do that for us we just need to configure it in our diagnostics configuration in onstart method of the role. Check this please
My application was able to log in to the table for some time around 15 entries get logged in to the table, after some time the logging did not happened, I am in confusion where is the problem and how to check the problem. Any thoughts by
some one here can help me, Please let me know.