In a web app, is it wise to give log files ".txt" suffix?
Posted
by Pekka
on Stack Overflow
See other posts from Stack Overflow
or by Pekka
Published on 2010-03-20T14:16:00Z
Indexed on
2010/03/20
14:21 UTC
Read the original article
Hit count: 322
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?
© Stack Overflow or respective owner