Hi, and welcome to UK Fungi.
It would be usual to require microscopy for mushrooms such as these, as they are inkcaps and there are several similar looking species.
However, in this case, small salt-like white granules can be seen on the caps.
That, their overall size, and your mention that they were growing on a rotting trunk, makes things a lot easier.
These are Coprinellus micaceus, (with the British Mycological Society accepted “common” name of Glistening Inkcap”.
Quote from First Nature website –https://www.first-nature.com/fungi/coprinellus-micaceus.php : –
“The specific epithet micaceus means ‘similar to grains of salt (or mica)’ and refers to the tiny granules (veil fragments) that glisten like specks of mica on the surfaces of immature caps . . . . “.
Regards,
Mike.