Debug.log as synchronized to support usage in threads