opensourceautomation / Open-Source-Automation

Open Source Automation is a home and commercial automation engine
www.opensourceautomation.com
GNU Lesser General Public License v3.0
97 stars 62 forks source link

Enhanced logging system for tracking and debug info #199

Open Automate1 opened 10 years ago

Automate1 commented 10 years ago

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

bwoodworth commented 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.

Automate1 commented 10 years ago

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

VaughnRupp commented 7 years ago

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.

KHerron commented 7 years ago

Well... I will give this a shot and see if I can find the issue

KHerron commented 7 years ago

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!!

KHerron commented 7 years ago

Did not close this, as I was not sure if there were other issues to be resolved.

KHerron commented 7 years ago

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.

KHerron commented 6 years ago

I believe all of this has been completed and committed. This issue can be closed.