I wanted to write/extend the logging library to have a custom Error number for each exception (error) the code has. What's the best approach for this? If possible can someone please provide a good starting code snippet. Thanks