1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

New class: NewLine, which provides a clean way to write new-line sequences to streams or strings, and a way to customise the new-line sequence used by an OutputStream.

This commit is contained in:
Julian Storer 2010-12-20 22:12:48 +00:00
parent 2bb0c77216
commit c8799c9107
15 changed files with 327 additions and 271 deletions

View file

@ -51,10 +51,10 @@ FileLogger::FileLogger (const File& logFile_,
}
String welcome;
welcome << "\r\n**********************************************************\r\n"
<< welcomeMessage
<< "\r\nLog started: " << Time::getCurrentTime().toString (true, true)
<< "\r\n";
welcome << newLine
<< "**********************************************************" << newLine
<< welcomeMessage << newLine
<< "Log started: " << Time::getCurrentTime().toString (true, true) << newLine;
logMessage (welcome);
}
@ -71,7 +71,7 @@ void FileLogger::logMessage (const String& message)
const ScopedLock sl (logLock);
FileOutputStream out (logFile, 256);
out << message << "\r\n";
out << message << newLine;
}