Microchip Technology interview question

How would you design a logging system