Skip to content

Commit

Permalink
feat: send logs to a LogOutputChannel VSCODE-429 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson authored Nov 29, 2023
1 parent bb85292 commit 6eb7606
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import * as vscode from 'vscode';
import util from 'util';

class Logger implements ILogger {
static channel: vscode.OutputChannel =
vscode.window.createOutputChannel('MongoDB Extension');
static channel: vscode.LogOutputChannel = vscode.window.createOutputChannel(
'MongoDB Extension',
{ log: true }
);

private name: string;

Expand Down

0 comments on commit 6eb7606

Please sign in to comment.