Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 682529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:36:21+00:00 2026-05-14T01:36:21+00:00

I am building a logging mechanism in a web application. Being a Windows man,

  • 0

I am building a logging mechanism in a web application.

Being a Windows man, I tend to give files with textual content the .txt ending. The suffix is automatically registered to be opened in a text editor in any Windows environment, and is just a nice convention.

The app is going to be redistributed, and running mostly on Linux, though. The Linux convention for log files is .log.

Is there any good reason on the Linux end, besides convention, why I should use .log? Any filters, real-life applications that could become relevant and that will work only with a .log suffix?

Or can I merrily call it error_log.txt?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:36:22+00:00Added an answer on May 14, 2026 at 1:36 am

    As Itay correctly states, you can give file names whatever extension you choose on Linux. File extensions are a Windows-only concept; Linux uses something called magic numbers to identify file type. Type file filename and replace filename with whatever filename you want to look at and you’ll see what I mean. For example /usr/bin/perl doesn’t have the .exe extension it would have on Windows. As an example:

    root$: file /var/log/httpd/access_log
    access_log: ASCII text
    

    That said, for Windows/Linux interoperability you might consider using an extension like .log as Linux really doesn’t care, and registering that extension with your editor of choice under Windows to make your life easier. Just note when you write log files under Linux you’re going to be using Unix-style line endings, not Windows ones, so notepad.exe won’t display the log file properly. I use notepad++ when I’m on Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im building a web application which is a process management app. Several different employee
I'm building UI logging into a long-existing ASP.NET enterprise application. I have my own
Im building an application that requires extensive logging of actions of the users, payments,
I'm building a basic error logging feature in my application, where I just record
I'm building a web app and want to enable logging/error tracking. After reading the
I am currently building an ASP.Net-MVC Application using log4net for logging, but the logger
I've been building an error logging app recently and was after a way of
Building a client-side swing application what should be notified on a bus (application-wide message
Building the same project (without any changes) produces binary different exe-files: some small regions
I'm developing a sort of web application and recently come a need to log

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.