How to write to log from vscode extension?

Just as an update, you can use vscode.window.createOutputChannel to create the output container and then write to it with the appendLine method.

    //Create output channel
    let orange = vscode.window.createOutputChannel("Orange");

    //Write to output.
    orange.appendLine("I am a banana.");

Results of creating output channel.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)