add optimization for logging without runtime information