Open Automate1 opened 10 years ago
Logging has been updated to use log4net in the services, most plugins, web UI. The API is the main place that is left to do the changeover.
The new logging in web pages does not seem to be working.
See this topic is the forum http://www.opensourceautomation.com/phpBB3/new-logging-for-web-page-t1028.html
There is something not loading right from the WebUI. I investigated it once and checked the WebConfig, etc, and it looks right, but I am not much of a web guy. If you put a break line in the API, the Appenders available are missing when running from the web.
So something is just not initializing right from the web. This is a super important problem. I really need help with.
Well... I will give this a shot and see if I can find the issue
Well, this was a lot easier than I thought it would be!!!
A simple 1 liner in the Global.asax file, and Poof, it now logs!!
Did not close this, as I was not sure if there were other issues to be resolved.
May have to work on all the pages, as there is not need for each page to create a new log
public OSAE.General.OSAELog Log = new OSAE.General.OSAELog("Web Server");
All we have to do is reference the master page when we want to log a link like this:
Master.Log.Info("Log this line);
Unless we want to log each page in a different log.
I believe all of this has been completed and committed. This issue can be closed.
Most likely Log4Net
http://www.opensourceautomation.com/phpBB3/logging-strategy-t976.html
http://www.opensourceautomation.com/phpBB3/logging,-exception-handling,-and-some-other-stuff-t929.html