Capture the log message