A logging system base on mysql