Google interview question

How to design a log system?