Refactoring log system.