.log Application log

Text & source code

MIME typetext/x-log
DescriptionApplication log
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .log file?

A .log file is a “Application log” (MIME type text/x-log).

How do I open a .log file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .log file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.log shows the guessed type.

Which format is .log based on?

Technically a .log file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .log?

The MIME type is text/x-log. In the Apache web server: AddType text/x-log .log; in nginx: types { text/x-log log; }.

Nearby entries