attempt at logging