Skip to content

Commit 0abc316

Browse files
committed
Add username to log filename
1 parent 79ea557 commit 0abc316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/tools/lldb-dap/src-ts/logging.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as os from 'os';
12
import * as path from "path";
23
import * as vscode from "vscode";
34

@@ -44,7 +45,7 @@ export class LogFilePathProvider {
4445
const logFolder = this.logFolder || this.context.logUri.fsPath;
4546
switch(type) {
4647
case LogType.DEBUG_SESSION:
47-
return path.join(logFolder, `lldb-dap-session-${formatDate(new Date())}.log`);
48+
return path.join(logFolder, `lldb-dap-session-${os.userInfo().username}-${formatDate(new Date())}.log`);
4849
break;
4950
}
5051
}

0 commit comments

Comments
 (0)