Made a logger
Logging with the logger instead of console