error-reporting

Popular JSP/Servlet/Portlet Error Log Viewer?

After reading the latest Coding Horror post I wondered if there was a Java-based version of ELMAH out there in the open source community? A configurable JSP/Servlet/Portlet WAR that I can just drop into most servers and have a nice GUI for viewing the logs in the system. Anyone have a project to recommend? Duplicate of http://...

Can the ASP.NET Yellow Screen of Death (YSOD) be generated on demand or captured?

We'd like to just capture the YSOD output to use in an erorr reporting email, from a Global.asax error handler, for instance. Is there any way of leveraging the built-in ysod generator? ...

Platform details capturing API/tool -- Windows Error Reporting equivalent.

I am developing a .NET based desktop application written in C#. If and when the application crashes, I would like to capture certain details regarding the machine on which the application was running: Operating system details: version, service pack etc. .NET details: Framework version Installed programs Processes running at the time of...

What is the best way to send application errors and logs by internet to the developers?

As the author of a C# application, I found that troubleshooting issues reported by users would be much easier if I had access to the exception or debug logs. I have included a home-grown logging mechanism that the user can turn on or off. I want the user to be able to submit the logs via the internet so I can review the logs for the er...

Capturing raw HTTP POST Data during Exception

I have a WCF Service hosted in IIS/ASP.NET that accepts HTTP Post (not form post) of serialized objects. If the client sends malformed requests (eg they're not serializing the object correctly) I'd like to log the message sent up. We're already using ELMAH to capture unhandled exceptions, so simply attaching the post data would be t...

How to find a reason when mkdir fails from PHP?

PHP's mkdir function only returns true and false. Problem is when it returns false. If I'm running with error reporting enabled, I see the error message on the screen. I can also see the error message in the Apache log. But I'd like to grab the text of the message and do something else with it (ex. send to myself via IM). How do I get t...

Parse errors are not displayed

Hi all, I want PHP to display parse errors on screen. What I get instead is a blank page. Nothing gets written to server's error log file. My setup: PHP5.2.9/IIS 6 (not Apache!). My PHP.INI: error_reporting=E_STRICT display_errors = On display_startup_errors = On log_errors = On error_log = "C:\Program Files\Zend\ZendServer\logs\php_...

Error Reporting in WCF Service?

I have a self hosted Net Tcp WCF service and I have the following method Subscribtion GetSubscribtion(int subscribtionId) { Subscribtion s; if (_subscribtionTable.TryGetValue(subscribtionId, out s) == false) { Console.WriteLine("Not Found SessionID");//for debugging ...

Apache: return 404 errors instead of 500 errors.

In apache I'd like to return 404 errors whenever I get a 500 error. Its a very strange use case, I know, but I'm wondering if its possible. I found this http://www.4webhelp.net/tutorials/misc/errors.php Which leads me to believe you can change what happens on the different errors. Something like this would be great ErrorDocument 4...

Why not to use highest error reporting level in PHP?

I want you to give reasons why someone should not use the highest possible error reporting level in PHP? Ways to set highest level: PHP 5: error_reporting(E_ALL | E_STRICT); PHP 6: error_reporting(E_ALL); PHP all versions (as recommended for config files): error_reporting(2147483647); My experiences: there is no reason for l...

PHP error reporting on specific folders

is there a way to set *error_reporting(E_ALL);* for a specific directory rather than including it in each file? I'd like to turn on error reporting for my beta.mysite.com ...

How do I get PHP Errors to display?

Hello all, I have checked my PHP ini file and display errors is set and also error reporting is E_ALL. I have restarted my apache web server. I have even put these lines at the top of my script and it doesn't even catch simple parse errors. For example, I declare variables with a "$" and I don't close statements ";". But all my scripts ...

Useful values to add to error messages .NET

On my application wide error handling I'm returning the host name to see what computer it happened on, application version, windows version, exception with all inner exceptions, and the stack trace. What other information can you get while inside the MyApplication_UnhandledException method that would be useful for tracking down an error...

.NET "Send error report to [me]"

If an exception propagates all the way up to the top of my application (which, of course, will never happen), I would like to offer the option of sending an error report to me before the program crashes. What I have in mind is wrapping everything in the Main function in a try-catch, and a little class that sends the stack trace and other...

error handling with spring + servlet spec

I have a web-app (2.5 servlet spec) with a spring dispatcherservlet handling anything coming on /error/* and an error page configured to route that to /error/ something like this: <servlet> <servlet-name>errorServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-star...

How to output the reason for a PHP file open failure

I'm trying to debug a huge, antiquated (circa 2001) PHP web service and I'm encountering file open failures. The fopen call is in an included module, the caller is logging that the file could not be opened but no reason is being logged. The code that actually does the open is: // Read the file if (!($fp = @fopen($fileName, 'rb')))...

PHP error reporting while running under IIS

I am trying to get my install of PHP under IIS to display errors, but I'm having no luck at all. I tried error_reporting(E_ALL); in the script, and nothing shows up, just a blank screen. I tried editing my PHP.ini file and setting error_reporting = E_ALL display_errors = On Also tried error_reporting = E_ALL display_errors = st...

How can I stop PHP notices from appearing in wordpress?

I know about error_reporting(0);, and ini_set('display_errors', false);, but there is a notice appearing in wordpress: Notice: Array to string conversion in /var/www/vhosts/treethink.net/subdomains/parkridge/httpdocs/wp-includes/formatting.php on line 359 it only appears in wordpress, not in any other pages of the site. I checked ...

Fogbugz and ELMAH - Communication Plugin

My employer is currently trying out Fogbugz and one feature that would be nice is some sort of automation between our exception logger (ELMAH) and case generation in FogBugz. Specifically, it would be great if there were a module to send error reports to FogBugz and then in FogBugz process the error, look for duplicates (perhaps grouped ...

Error gathering and reporting for ASP.NET MVC

Is there any tool like ELMAH for error gathering of an ASP.NET MVC that, unlike ELMAH, can work indistinctly on x86 and x64. Currently one single ELMAH cannot do that because of its dependency on SQLite which has native code (for one or the other platform and not both). Even though my setup is fully x64, Casini, the web server used by V...