### Godot version

v4.1.beta.custom_build [ea6a141ff]

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

I noticed editor log misbehaving when a text is being printed. It seems to be mostly noticeable (or exclusive to?) when collapsing of duplicate messages is enabled.

https://github.com/godotengine/godot/assets/2223172/4ccfaa70-8991-4f5d-95ec-c732600b82ec

It looks like the log rebuilds from scratch with every message. If it had already some content, the text might be printed faster than it appears, causing it to be unreadable:

https://github.com/godotengine/godot/assets/2223172/6b69d308-37f1-4d8f-b47c-09f2e42eda43


### Steps to reproduce

```GDScript
func _process(delta: float) -> void:
	print("spam")
```

### Minimal reproduction project

N/A
void set_offset(int p_pixel);
	void set_meta_underline(bool p_underline);
	bool is_meta_underlined() const;
	void set_hint_underline(bool p_underline);
	bool is_hint_underlined() const;
	void set_scroll_active(bool p_active);
	bool is_scroll_active() const;
	void set_scroll_follow(bool p_follow);
	bool is_scroll_following() const;
	void set_tab_size(int p_spaces);
	int get_tab_size() const;
	void set_context_menu_enabled(bool p_enabled);
	bool is_context_menu_enabled() const;
	void set_shortcut_keys_enabled(bool p_enabled);
	bool is_shortcut_keys_enabled() const;
	void set_fit_content(bool p_enabled);
	bool is_fit_content_enabled() const;
	bool search(const String &p_string, bool p_from_selection = false, bool p_search_previous = false);
	void scroll_to_paragraph(int p_paragraph);
	int get_paragraph_count() const;
	int get_visible_paragraph_count() const;
	float get_line_offset(int p_line);
	float get_paragraph_offset(int p_paragraph);
	void scroll_to_line(int p_line);
	int get_line_count() const;
	int get_visible_line_count() const;
	int get_content_height() const;
	int get_content_width() const;
	void scroll_to_selection();
	VScrollBar *get_v_scroll_bar() { return vscroll; }