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
A .txt file is a plain text file: just characters, with no fonts, bold, images or layout. It is the simplest and most portable document format, readable by every operating system and text editor, and used for notes, logs, README files, configuration and data that needs to stay readable for decades.
A .cfg file is a configuration file that stores settings for a program, game or device, usually as plain text. There is no single CFG format: some use key=value lines like INI, others lists of commands or JSON-like blocks. Notepad, TextEdit or VS Code open them; the owning program decides what each line means.
A .ini file is a plain-text configuration file that stores settings as key=value pairs grouped under [Section] headings. Windows programs, games and many cross-platform tools use INI files for options such as resolution, paths and preferences. Any text editor, including Notepad and TextEdit, can open and edit them.
A .csv file is a plain-text table where each line is a row and commas separate the columns. It has no formatting, formulas or multiple sheets, which makes it the universal format for moving data between spreadsheets, databases, banking portals, CRMs and code. Any text editor or spreadsheet app can open it.
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.