logger basic functionality
logger basic functionality merged with new code