Punctuations interview question

How would i design logging and error handling