Updated serverLogger.js to remove self-executing function