Normally you should do this using scripting where all warning / error/ problem/messages
whenever and if they occur, would be sent to you with the db id and the neccesary info.