From 57051b888a0bdc372ff63c8186e907de9f12a66c Mon Sep 17 00:00:00 2001
From: mbellgardt <bellgardt@vr.rwth-aachen.de>
Date: Tue, 26 Jan 2021 12:15:29 +0100
Subject: [PATCH] Modify README to include new functionality.

---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index 8ba4858..8d88972 100644
--- a/README.md
+++ b/README.md
@@ -75,6 +75,16 @@ UniLog.Log("Message", "StreamName");
 UniLog.LogF("StreamName", "Message %s", *variable);
 ```
 
+### Send Multiple LogStreams to the Same File
+
+You can simply specify the same file name and file path in multiple LogStreams. The output of both streams will be written to this file. This can be useful to have separate streams for errors or warnings. To distinguish the streams, you can use 
+
+```cpp
+stream->SetPrefix("Warning: "); // No additional space will be added after the prefix, so make sure to add one if you want that
+```
+
+to set a prefix that will automatically be added to every message that is written to the file (this will not show up in the on screen log).
+
 ### On Screen Logging
 
 You can also display the log messages on screen. This can even be enabled/disabled during runtime. To do this, use the ILogStream interface:
-- 
GitLab