They are safe but will shrivel up if you remove them and silicone them to the background. What you are seeing are actually just the fruiting bodies of a much larger organism living inside that log. So taking the visible fungi is a bit like picking apples. If you place a piece of that log in your viv, there is a good chance that more of those shelf fungi will grow from it for awhile.