Skip to content

Commit 6eb7606

Browse files
feat: send logs to a LogOutputChannel VSCODE-429 (#616)
1 parent bb85292 commit 6eb7606

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/logging.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import * as vscode from 'vscode';
33
import util from 'util';
44

55
class Logger implements ILogger {
6-
static channel: vscode.OutputChannel =
7-
vscode.window.createOutputChannel('MongoDB Extension');
6+
static channel: vscode.LogOutputChannel = vscode.window.createOutputChannel(
7+
'MongoDB Extension',
8+
{ log: true }
9+
);
810

911
private name: string;
1012

0 commit comments

Comments
 (0)