wrapped log system into a class Log