Added the logging subsystem ( dosent work yet )