[SERVER-12803] Use CR/LF in log files and MongoDB config on Windows Created: 20/Feb/14  Updated: 31/Jul/15  Resolved: 25/May/14

Status: Closed
Project: Core Server
Component/s: Admin, Logging
Affects Version/s: None
Fix Version/s: 2.7.2

Type: Improvement Priority: Major - P3
Reporter: Andre Spiegel Assignee: Mark Benvenuto
Resolution: Done Votes: 8
Labels: Windows, community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-15362 Log files use Unix line endings on Wi... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server 2.7.2
Participants:

 Description   

On a production Windows environment, there is often no tool available that can handle log files with Unix line endings. Notepad doesn't do it, and WordPad is not capable of dealing with large log files.

It would therefore be helpful if the Windows version of MongoDB would write log files with standard Windows line endings (CR/LF).

In addition, the mongod config file on Windows should also support normal Windows line endings so a blank config file can be created in Notepad instead of with echo as suggested in the documentation.



 Comments   
Comment by Githook User [ 23/May/14 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-12803: Use CR/LF in log files on Windows
Branch: master
https://github.com/mongodb/mongo/commit/57d2c1fd5e7a43b33947b1c96aca2128cc41c5a7

Comment by Mark Benvenuto [ 14/Mar/14 ]

I could successfully create a config file with Notepad with CRLF endings without any changes. For the log file, I have a fix for the 2.8.x release.

Comment by Brian Elgaard [ 07/Mar/14 ]

Sounds like an easy fix (right, Mongo Guys ) with great impact.

Generated at Thu Feb 08 03:29:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.