R: [Rainbowportal-devel] Rainbow Error Handler
Brought to you by:
danijel_kecman,
manudea
From: manudea <ma...@du...> - 2003-04-14 23:56:11
|
A couple of notes: Your code guys is great but people need help. It is good add = instructions on forums or mailing list but I strongly invite all of you to add a readme = on the code itself. This email is just fine. We cannot rely on people reading on forums. For additional web.config.... I was thining about. Maybe the default vs production settings it is not bad... If we do not update addtional web config on cvs we can retain defaults values on main web.config and override it on addtional file. If = we use both we loose this faciity. Another ideea on migration: we can ove to new file new settings and keep = the old one on web.config. Well: we have to choose on of them :) Cheers ------------------------------------ Emmanuele De Andreis Technical Manager DUEMETRI Internet Solutions Provider =20 RAINBOW PORTAL Main portal - http://www.rainbowportal.net Sourceforge / CVS - http://sourceforge.net/projects/rainbowportal/ Support Forums - http://www.rainbowportal.net/ASPNetForums -----Messaggio originale----- Da: rai...@li... [mailto:rai...@li...] Per conto di = John M Inviato: luned=EC 14 aprile 2003 14.31 A: rai...@li... Oggetto: [Rainbowportal-devel] Rainbow Error Handler Hi all, I am about to commit the next version of the error handler....let's call = it=20 v0.8 for now as I still dont think it is 100% perfect. New features: configurable from web.config: 1) <add key=3D"AlternateLogLocation" value=3D"" /> - Lets you specify an alternate location for log files (Default is a new = Logs directory on the root) 2)<add key=3D"LogMessageMode" value=3D"Full" /> - If this is set to "Full" it will enter User Details also. If set to = short=20 it will exclude user specific information. 3)<add key=3D"LogFileFormat" value=3D"Daily" /> This setting can be used by Error Loggers or any other logger class (e.g = Visitor statistics etc) also. It lets you specify whether you want your = it=20 logged by day,month or year. It has three settings: Daily - Errors are grouped by day. E.g of the File Logger: rb_error20030413.log Monthly - Errors are grouped by month. E.g of the File Logger: rb_error200304.log Yearly - Errors are grouped by year. E.g of the File Loggers: rb_error2003.log If this setting is left blank or does not match any of the above keys, = then=20 the filename will default to rb_error.log 4)<add key=3D"LogToFileErrorList" value=3D"All" /> This feature is to let you specify which errors get logged to file (Non=20 HttpException errors get logged automatically). Specify: "All" or a = specific error e.g "404" or a list of errors you want logged e.g. "404 403 500" = Each=20 log implementation (Event Log, Email etc) has a similar key. This is so = that you have control over what gets logged. You may want everything logged = to=20 file but only 500 Errors emailed to you and only 500 and 403 errors = logged=20 to the Event Log. 5) All methods are static now so that they are easier to use and take up = less resources (It also makes it easier to use from within modules). 6) If there is an error when it is trying to create the error message = (e.g.=20 If the database does not exist it can not create PortalSettings etc and = if=20 you have it set to full logging it will fail when it trys to get user=20 settings.) then it will catch this and produce a reduced log entry. Other changes: * slightly more information is logged (Did the user support Javascript = and=20 cookies - might have led to the error and was it a crawler). * by default in web.config I am pointing to the static error pages. The=20 reason why I am doing this is to make this release more stable. If you = want=20 dynamic error pages that support themes and multiple languages, just = replace the extension .html with .aspx. But there is a warning with this. It = will=20 work I'd say 98% of the time unless an error occurs on the actual page = (e.g. the original error was that access was denied to the db). I have tried = about 4 different ways of catching the error on the errorpage itself and it's=20 driving me mad :-) it doesn't seem to consistently redirect to the html = page and sometimes shows the standard aspx error (e.g "You cannot see this = error=20 but if you change settings in web.config you will etc" or you can not = view=20 pages with these exceptions). I've posted to groups and the asp.net = forums=20 and I am waiting on a few replies. If anyone else manages to = consistently=20 catch the error at the page level please let me know and I will merge = it. One other thing I have done is moved the handler settings into a = seperate=20 config file. Rainbow.config This is an un-documented feature of the .Net runtime v1. You can specify an external file in web.config The settings in this external file will override the ones in web.config = (If=20 they exist). They are accessed as the web.config appsettings are (So no=20 changes to the code). It can also be used for development/production setting environments. = e.g.=20 each developer has a personalised Rainbow.config file and the production = server settings are kept in web.config. On the dev machines his/her = personal settings will overide the production ones. There is one catch however. Changes to this file will not automatically=20 restart the website like web.config does. To get over this I have added = a=20 key to web.config to get over this: <add key=3D"RainbowConfigUpdated" value=3D"12/4/2003" /> Once you update Rainbow.config simply change this setting and save and=20 web.config will restart the app (Which in turn will get your new=20 Rainbow.config settings). If you guys dont like this seperate file idea please let me know and I = will=20 move the settings back into web.config. Regards, John _________________________________________________________________ Overloaded with spam? With MSN 8, you can filter it out=20 http://join.msn.com/?page=3Dfeatures/junkmail&pgmarket=3Den-gb&XAPID=3D32= &DI=3D1059 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Rainbowportal-devel mailing list = Rai...@li... https://lists.sourceforge.net/lists/listinfo/rainbowportal-devel - - |