optimized logger output and added bot heartbeat