error-logging

How do I log uncaught exceptions in PHP?

I've found out how to convert errors into exceptions, and I display them nicely if they aren't caught, but I don't know how to log them in a useful way. Simply writing them to a file won't be useful, will it? And would you risk accessing a database, when you don't know what caused the exception yet? ...

How to handle error logging

Until recently I've been using syslog in my System_Exception exception handler to log important errors - a pretty useful concept I thought. However my host just cut me off, and it appears that loveable syslog has actually been sending my error reports to everyone on the server (it's a shared server). They weren't too pleased. I've now s...

Error handling / error logging in C++ for library/app combo

I've encountered the following problem pattern frequently over the years: I'm writing complex code for a package comprised of a standalone application and also a library version of the core that people can use from inside other apps. Both our own app and presumably ones that users create with the core library are likely to be run both ...

Error handling in BASH

What is your favorite method to handle errors in BASH? The best example of handling errors in BASH I have found on the web was written by William Shotts, Jr at http://www.linuxcommand.org. William Shotts, Jr suggests using the following function for error handling in BASH: #!/bin/bash # A slicker error handling routine # I put a va...

How to diagnosis app crash from OS X error log?

Short Q.: What does this exception mean? "EXC_BAD_ACCESS (0x0001)" Full Q.: How can I use this error log info (and thread particulars that I omitted here) to diagnosis this app crash? (NB: I have no expertise with crash logs or OS kernels.) In this case, my email client (Eudora) crashes immediately on launch, every time, after no appar...

Error logging in C#

I am making my switch from coding in C++ to C#. I need to replace my C++ error logging/reporting macro system with something similar in C#. In my C++ source I can write LOGERR("Some error"); or LOGERR("Error with inputs %s and %d", stringvar, intvar); The macro & supporting library code then passes the (possibly varargs) formatted me...

Where are the best locations to write an error log in windows?

Howdy, Where would you write an ErrorLog.txt file in Windows? Keep in mind the path would need to be open to basic users for file write permissions. I know the eventlog is a possible location for writing errors, but does it work for "user" level permissions? Thank you, Keith EDIT: I am targeting Windows 2003, but I was posing the...

Logging, when and what?

I am currently working on a rather large multi tiered app that will be deployed overseas. Although I hope it won't fall over or blow up once depolyed I can't be 100% sure of this. Therefore it would be nice to know that I could request the log file, to work out exactly what went wrong and why. So basically as the title suggests I woul...

Handle errors with ErrorController rather than a direct view.

I'm trying to get my head around the Error Handling in MVC. What I'm looking for is a centralized way to catch errors, log them, if possible resolve them, if nessecary take other actions and finally show the correct view to the user. I think I can use the [HandleError] filter for this, but I don't see any way to route it to a Controller...

Automatic Java Error Reporting Systems

Does anyone know of a system for automatic error reporting in java? We have a server product that is installed on client servers. The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker. Preferable, this would happen over http. It wouldn't happen for all ...

Error Tracking in live/production web applications

I currently work at a company that has a lot of custom applications that are made internally. There are not currently standards for a lot of things. I would like to implement a way to record/track errors that happen in this programs (most are asp.net). I am currently thinking of handling this in the Global.asax in the Application Erro...

How do you log server errors on django sites

So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information. But on kind of production site I'd rather use DEBUG=False and show visitors some standard error 500 page with information that I'm working on fixing this bug at...

In CodeIgniter, how can I have PHP error messages emailed to me?

I'd like to receive error logs via email. For example, if a Warning-level error message should occur, I'd like to get an email about it. How can I get that working in CI ? Thanks, Ian ...

designing a distributed (over many servers) error logging feature, WCF or ?

Hi, I am designing a error logging feature so our servers (each donig different things) can have a central data store for logging errors. Would it be a good idea to have the various applications writing to the error log file using a WCF service, or is that a bad idea? they can do it just by ADO.NET to the database, which I think is th...

How much information to log from errors?

At the company I work for, I have created a Error Logging class to handle errors in my ASP.net application. It is a custom class because we are not allowed to install additional software on our servers (nLog, log4net, etc). I currently use it in two of my projects and have seen some good results from it. Right now I am trapping the er...

Can I detect XHTML parsing errors using Javascript?

When I have a markup error in my XHTML page, Mozilla Firefox displays the "Yellow Screen of Death", showing only a large red error message on a yellow background. While these errors are rare, they are extremely user-unfriendly. Is there a way I can detect these using Javascript, and thereby send a message back to the server? What I've...

How to put error handlers in all vb functions

We have multiple vb projects.We want to put error handlers in all functions, and error handler should write to a file.Are there any tools available - we have looked at codesmart and vbwatch. ...

Best XML format for log events in terms of tool support for data mining and visualization?

We want to be able to create log files from our Java application which is suited for later processing by tools to help investigate bugs and gather performance statistics. Currently we use the traditional "log stuff which may or may not be flattened into text form and appended to a log file", but this works the best for small amounts o...

In ColdFusion, how can I extract and store the contents of the submitted form?

I'm writing an application in ColdFusion, and even though it is mostly stable, it errors every so often. Because it has replaced the old application already, sometimes it is the users who get errors instead of me. I've created a nice page that people get when they get an error that sends information to me, such as error, referrer, error...

How to develop an after serverror trigger in Oracle?

Hi! I'm trying to log all the errors in my database into a table. So as user sys i wrote the following code: CREATE TABLE servererror_log ( error_datetime TIMESTAMP, error_user VARCHAR2(30), db_name VARCHAR2(9), error_stack VARCHAR2(2000), captured_sql VARCHAR2(1000)); / CREATE OR REPLACE TRIGGER...