How can I turn off the logger?

There is no way to turn off the logger. If your purpose is to save the power of the battery you can set the sampling interval to 12 hours.