Skip to content

Commit 0c3a4ca

Browse files
authored
Merge pull request #618 from Microsoft/FixLogStreamingIssue
support real time logging
2 parents 19282f7 + e54694a commit 0c3a4ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/com/microsoft/applicationinsights/internal/logger/DefaultLogFileProxy.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public void delete() {
5757

5858
public void writeLine(String line) throws IOException {
5959
out.write(line + NEW_LINE);
60+
61+
//flush every time for real time streaming of logs on file.
62+
//Please use logger with caution. Using File logger with TRACE level logging
63+
//can significantly increase the load
64+
flush();
6065
}
6166

6267
public boolean isFull() {

0 commit comments

Comments
 (0)