undertook log
develop simple logger
Merge log func