console logging snippet