simple log system
[undebugged]refactoring completed.