By Michael Bristow
BBC News, Beijing
The diary included tales of corruption and drunken evenings
A Chinese official has been arrested after a diary about his colourful private life was posted online, according to state media reports.
In the diary, Han Feng talked about his drinking, his sexual relationships and how he took money from others.
It became an instant hit among internet users when it appeared online in February.
But Mr Han is now being held on suspicion of taking bribes worth more than 480,000 yuan ($70,000).
Mr Han was the sales manager at a government-run tobacco bureau in the Guangxi Zhuang Autonomous Region in southern China.
His job might not have been the most colourful, but his private life certainly was.
In diary notes covering five months, he writes about drinking too much alcohol, fooling around with women and taking money.
The 53-year-old had at least five affairs, and noted at the end of 2007 that he had been lucky with women that year.
"This girl is too wild! Got a room at the Guoda Hotel," read an entry about a tryst with one of his mistresses.
The brief diary entries mix comments about the minor official's work, home life and how he entertained himself. He also throws in the odd aside about the weather.
They show how Mr Han appeared to seamlessly combine work and pleasure, often ending the evening by drinking too much.
The diary entries posted on the internet ended in January 2008, but they have only just appeared online.
According to the state-run news agency Xinhua, Mr Han has now been sacked from his job and arrested. He is accused of taking bribes and accepting the gift of an apartment.
China's leaders have launched campaign after campaign against corrupt local officials, who sometimes use their power and influence to enrich and enjoy themselves.
The tale of sales manager Han Feng suggests those efforts will continue for some time yet.