Skip to content

Add logging infrastructure to TypeScript VSCode extension #3250

@Veetaha

Description

@Veetaha

Rationale

In our VSCode extension we use simple console.log() and console.error() functions to print debugging-related stuff. It does help a lot, but it has quite a few big flaws.

Proposal

At the end of they day we need to record logs in files (put them in ExtensionHost.logPath)

The initial proposal for the infrastructure was stated by @matklad in this comment.

We currently haven't agreed on the exact design of logging. So this is need to be done yet.

Just a quick-and-not-yet-ultimate thought from me: I'd like to propose some logger package like
pino.

If anybody has some design proposal, it would be great to hear from you! Anyway, once I have time, I'll take it to investigate what we can do here and post my thoughts here so we can agree on the final shape of our logging infra.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions