refactored file to be testable, renamed functions, added delete log function and exception handlers
Added messages for dbr_log, also for testing related functionality
Refactored internal variable to not clash with similar function name, added delete option to log subcommand
Implemented unit tests for logging functionality, and renamed test class to TestCoreDefaultErrorMessages