Implement a logger interface and replace all *printf statements with it
**Acceptance Criteria**
* The logger interface should be able to log in foreground (printf)
* The logger interface should be able to log in background (syslog)
**Tasks**
- [x] Implement the new logger interface
- [x] Replace all *printf outputs with the new logger interface
issue