Synchronized the logger