record the log message into web database.