What Is a .LOG File?

A .log file is a plain-text record that a program writes as it runs, usually one line per event with a timestamp, a level such as INFO or ERROR, and a message. Logs help diagnose crashes and failed installs. Any text editor opens them; on a Mac, the Console app is built for reading logs.

Extension
.log
Full name
Log File
Type
System and app file
MIME type
text/plain

About LOG files

Programs, installers, servers and games append lines to log files over time. A typical line looks like 2025-05-01 10:42:13 ERROR Could not connect to server. When something breaks, scrolling to the last ERROR or WARN lines before the failure usually tells you or a support team what went wrong.

Log files can grow to hundreds of megabytes or several gigabytes, which makes Notepad slow. VS Code handles large files better, and command-line tools such as tail, grep or PowerShell's Get-Content -Tail show just the end. Most software rotates logs, keeping a few older numbered files (app.log.1, app.log.2).

Logs often contain user names, file paths, IP addresses, email addresses and sometimes access tokens. Review and remove sensitive lines before attaching a log to a public forum or bug report. Windows' own event logs are .evtx files opened in Event Viewer, not .log files.

What LOG files are used for

  • Troubleshooting crashes, installs and updates
  • Server and web access records
  • Game and mod loader logs for support requests
  • Audit trails of what a script or program did

How to open a .log file

Windows

Double-click to open in Notepad. For large files, use VS Code, or run Get-Content file.log -Tail 50 in PowerShell to see the latest lines.

Mac

Open it in the Console app or TextEdit; Console can filter and search log files.

Linux

Use less, tail -f file.log to follow it live, or any text editor.

How to convert a .log file

A LOG is already plain text. To analyze it in a spreadsheet, rename a copy to .txt and open it in Excel or Google Sheets using the import wizard to split columns on spaces or tabs.

To share only the relevant part, copy the lines around the error into a new text file instead of sending the whole log.

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming LOG files

  • Include the program and date in saved copies (installer-2025-05-01.log) when sending logs to support.
  • Do not rename logs that a program is actively writing; copy them instead.
  • When collecting logs from several machines, add the computer name (app-laptop-02.log) so the copies do not overwrite each other.

Renaming lots of .log files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

How do I open a LOG file?

Any text editor works: Notepad on Windows, TextEdit or Console on Mac. VS Code is better for very large logs.

Can I delete LOG files?

Usually yes, since they are records rather than settings, but keep recent ones if you are troubleshooting a problem.

Is it safe to share a log file?

Check it first. Logs can contain your user name, paths, IP addresses or tokens that should be removed before posting publicly.

More system and app file extensions · all file extensions