Original Post
Just wondering what systems people use to manage error handling and logging in their systems. Right now my engine has a static LogManager object (m_log_manager) and a static method public static void HandleError(Exception e); HandleError takes the exception, pulls out interesting stuff and then calls m_log_manager.WriteToLog("ERRORS", "the log entry's text"); In all my utility code that I've written I don't try/catch anything because retrowing errors is expensive and usually the code isn't able to handle the error anyway since there's no guarantee about what kind of setup the code will be run under. For example, I might not be writing a console app, so catching and printing to a console is useless. Anytime my engine calls a method that can throw an exception, I wrap a try/catch around it and call HandleError in the catch block. Do you think this is a good setup or could I do better?