Has anyone a simple sample with logging working?

I am tested different loggers. As the documentation says, we should do nothing. My goal is to run a background task and see the logging related with the background task afterwards in ~/Hangfire. I even tried all versions of the tutorial samples. But I cannot get the logging working. A simple sample would be very helpfull.