.LOG

LOG File

Ask a question
QUICK ANSWER

A LOG file is a plain-text journal of events that a program or the operating system writes while it runs - timestamps, warnings, and errors. Open it in any text editor: Notepad on Windows, TextEdit on Mac, or Notepad++ and VS Code for large files. It cannot execute, so opening one is safe; search it for "error" near the time a problem occurred.

Developer: N/A (generic convention used by operating systems and applications) Category: Text Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .DOC · .ODT · .DOCX · .GDOC

On this page

19k+ extensions indexed
Last reviewed Jul 24, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LOG file format?

.log is a plain-text file used to store various process logs. A .log file can be generated by an operating system or application - almost any software that runs a persistent process writes one. Because the content is nearly always plain text encoded in UTF-8 or ASCII, it can be opened in any text editor. Each line typically begins with a timestamp (e.g. 2026-06-11 10:42:01) followed by a severity level and a message. What information is written to log files is a design choice made by the developer or administrator. A special instance of the .log file is the error log, which stores only information about process errors.

What do log files contain

Entries in .log files are divided into three categories:

  • Error - the process or part of the process encountered an event that prevented it from executing its routines
  • Warning - the process or part of the process encountered a problem, but it did not prevent it from executing its routines
  • Information - some information pertaining to the execution of a given process

Many modern applications also write Debug and Trace entries during development or active troubleshooting.

Log files can store information such as the history of changes, users logged into the system, or resource access history. Logs can be exported to other file formats - for example .CSV - for further processing and the generation of statistics and reports. Long-running services commonly rotate their logs, renaming the current file to .log.1 and starting a fresh .log. A minority of applications (certain databases, games, or Windows ETL traces) write proprietary binary .log files that can only be opened in their own viewer or a dedicated log-analysis tool.

Security & safety

RISK: LOW

A plain-text .log can't execute and is safe to open in a text editor. Two real cautions: (1) logs frequently contain sensitive data - usernames, IP addresses, file paths, tokens, even passwords - so scrub them before posting publicly or attaching to a forum; (2) never trust a .log that has an unusually large size and asks to be 'run', and be wary of files that pretend to be logs but have a double extension (report.log.exe). Deleting old rotated logs is generally safe; an active log may be locked by the running program.

Format details

in a nutshell
FULL NAMELog File
DEVELOPERN/A (generic convention used by operating systems and applications)since Convention as old as software logging itself
CATEGORYText Files
MIME TYPEtext/plain
TYPEPlain-text event log (usually UTF-8/ASCII, line-oriented)
STANDARDOpen · royalty-free
This extension is also used by…
  • Binary/proprietary application logs - A few programs (some games, DB engines, telemetry) write .log in a binary format readable only by their own tooling, not a text editor.

Programs that open LOG files

Windows3 apps
Windows Notepad Built-in Right-click the .log > Open with > Notepad. Fine for small logs; use Notepad++ for large ones.
Notepad Open-source Open the .log; handles big files, syntax highlighting, and has a search to jump to 'error'. Best free choice.
Visual Studio Code Free Open the log; great search/filter and a Log file syntax mode. Good for multi-megabyte logs.
macOS2 apps
TextEdit Built-in Double-click or open the .log in TextEdit to read it as plain text.
Console (Apple) Built-in For system logs: open Console.app to browse macOS's live and stored system logs (not for arbitrary app .log files).
Linux1 app
gedit / nano / less Open-source Open in gedit, or in a terminal use less app.log (and G to jump to the end, /error to search).

Technical details

deep spec
Format typePlain-text, line-oriented event log
Typical encodingUTF-8 or ASCII; older Windows logs may use ANSI (Windows-1252)
MIME typetext/plain
File signatureNone - no magic bytes or fixed header; identified by the .log extension and content heuristics
Line structureOne event record per line; each line is self-contained and human-readable
Common severity levelsTRACE, DEBUG, INFO, WARN, ERROR, FATAL (in ascending severity order)
Timestamp formatsISO 8601 (YYYY-MM-DD HH:MM:SS), Unix epoch (integer seconds), syslog format (RFC 3164 / RFC 5424)
Established log formatssyslog (RFC 5424), Apache/NGINX Combined Log Format, W3C Extended Log Format, JSON-per-line (NDJSON)
Newline conventionLF (\n) on Unix/Linux/macOS; CRLF (\r\n) on Windows; most parsers accept both
Log rotationServices rotate by date or size, producing .log.1, .log.2 … or date-stamped copies; logrotate is the standard utility on Linux
Binary variantSome databases, games, and Windows ETL traces write proprietary binary .log files readable only in a dedicated viewer
Structured log variantsJSON-per-line, key=value pairs (logfmt), and XML increasingly appear inside .log files for machine parsing
Common system locations (Linux/macOS)/var/log/ and application-specific subdirectories
Common system locations (Windows)%SystemRoot%\Logs\, %APPDATA%\, and %TEMP%\
ReleasedConvention as old as software logging itself
Open standardYes · royalty-free

LOG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LOG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LOG files.

Frequently asked questions

How do I open a LOG file?
It's plain text - open it in any editor: Notepad or Notepad++ on Windows, TextEdit on Mac, gedit or less on Linux. VS Code or Notepad++ are best for large logs.
What program opens a LOG file?
Any text editor. There's no special 'log viewer' needed for standard text logs; pick Notepad++/VS Code for big ones so they don't slow down.
Can I delete LOG files?
Usually yes - they're just a history of past events. Old, rotated logs are safe to remove; an app's current log may be locked while the program runs. Don't delete a log support has asked you to send.
Why is my LOG file unreadable / full of strange characters?
A few programs write binary or proprietary .log files (some games, database transaction logs, Windows ETL traces). Those need the vendor's own viewer, not a text editor.
How do I open a huge LOG file that freezes Notepad?
Use Notepad++, VS Code, or a tool built for big files (e.g. glogg/klogg). On Linux/macOS, less bigfile.log opens instantly and lets you search with /.
How do I find the error in a log?
Search (Ctrl+F) for 'error', 'fail', 'exception' or 'fatal', and read the lines just before/after - and check the timestamps near when the problem happened. The cause is usually right before the failure.

References

1Microsoft - View event and error logs (Event Viewer)support.microsoft.com
2Apple - Console User Guidesupport.apple.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.DOCMicrosoft Word 97-2003 Document
.ODTOpenDocument Text
.DOCXMicrosoft Word Open XML Document
.GDOCGoogle Docs Shortcut (Link to a Google Docs document)
.LSTList File (generic plain-text list / listing)
.VNTvNote (mobile phone text note / memo)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z