logging modified

logging is now functional