log system for clean code