Refactored logging
- Updated code to use the latest logging features from python-application.
- Rewrote system logging to be more readable and easier to interpret.
- Implemented trace loggers based on notifications to separate and isolate them from the code that generates the trace log events.
- Added a trace logger for DNS lookups.