# `read_log` Read the tail of one of Godot's log files. **Input** — `which` (optional, default `project`), `lines` (optional, default 100, max 1000) The Output panel's contents are not exposed to scripts, but the engine writes the same material to disk. Two logs matter, and they are not interchangeable: - **`project`** — what the running game wrote. A crash or a runtime error lands here, not in the editor's log. - **`editor`** — the editor's own log, kept beside the editor's data rather than in the project. Returns the last `lines` lines, with how many were shown out of the total. ## When there's no log A project only writes one when file logging is on. If the file is missing, the result points at `debug/file_logging/enable_file_logging` in project settings, and notes that the log only appears after the project has been run.