I have developed an Umbraco website on my local development PC and logging works fine there, but when I upload the web app to a shared hosting environment, nothing is being logged to the Umbraco log table.
I have checked all the obvious things (or at least I think I have checked them all - this is my first Umbraco website)
That's very odd. It sounds like everything is set up correctly, so not sure what's happening there. You could try installing ELMAH on the site (there's a dashboard package available for it too so you can view the logs in the back office) to do your error logging instead. It logs more detailed errors than Umbraco does, and gives you more verbose error messages (you can get the original YSOD error message, which is handy for debugging).
We use it on all of our sites these days, it's an excellent error logging system.
For anyone who has this error in future, turns out the Datestamp column didn't have the (getdate()) set as the default value in the database. Umbraco doesn't set that field as part of the log record insert and relies on the db to do the timestamp.
Nothing in Umbraco log table
I have developed an Umbraco website on my local development PC and logging works fine there, but when I upload the web app to a shared hosting environment, nothing is being logged to the Umbraco log table.
I have checked all the obvious things (or at least I think I have checked them all - this is my first Umbraco website)
What could I be missing?
Hiya,
Does the site work normally? Can you log into the back office OK? Also, check if you have logging disabled in your UmbracoSettings.config file.
Tim,
Thanks for the reply.
Yeah, the site works perfectly. I have it hosted in a medium trust environment, and everything works perfectly, except the logging.
I checked the UmbracoSettings file like you said, but logging is enabled. (enableLogging and enableAsyncLogging both set to true)
Any other ideas?
Usually you look in the log to see the errors, but what if the log is broken?
What then?
That's very odd. It sounds like everything is set up correctly, so not sure what's happening there. You could try installing ELMAH on the site (there's a dashboard package available for it too so you can view the logs in the back office) to do your error logging instead. It logs more detailed errors than Umbraco does, and gives you more verbose error messages (you can get the original YSOD error message, which is handy for debugging).
We use it on all of our sites these days, it's an excellent error logging system.
Tim,
Thanks for the reply.
We have elmah and it is working fine.
Unfortunately it is not giving any indication as to why the umbraco logging is not working.
For anyone who has this error in future, turns out the Datestamp column didn't have the (getdate()) set as the default value in the database. Umbraco doesn't set that field as part of the log record insert and relies on the db to do the timestamp.
is working on a reply...