common: Add the log handler.