Skip to content

Suggestion: Add timestamps to logs #4057

Closed

Description

Brief Issue Summary

It's helpful to have timestamps associated with the cmake build log, for example when building vcpkg dependencies that may take a long time. We can do that for ninja via its configuration, but for cmake it's not as simple. I'm able to do this by modifying cmaketools' dist.js on every update and changing the line

            this._channel.appendLine(user_message);

to

            this._channel.appendLine(raw_message);

But I figure that if it's helpful for me, then maybe it would be helpful for someone else.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

I think the change could be made with a simple bool flag, inserted here:

const trace = vscode.workspace.getConfiguration('cmake').get('enableTraceLogging', false);

e.g.

const debugInOutput = vscode.workspace.getConfiguration('cmake').get('enableDebugInOutput', false);

and used here:

// Write to our output channel
if (levelEnabled(level)) {
this._channel.appendLine(user_message);
}

e.g.

// Write to our output channel 
if (levelEnabled(level)) {
    if (!debugInOutput) {
        this._channel.appendLine(user_message);
    } else {
        this._channel.appendLine(raw_message);
    }
} 

Activity

  1. added
    enhancementan enhancement to the product that is either not present or an improvement to an existing feature
    and removed on Sep 11, 2024
  2. moved this from Blocked to Pending Prioritization in CMake Toolson Oct 2, 2024
  3. moved this from Pending Prioritization to Completed in CMake Toolson May 14, 2026
  4. added a commit that references this issue on Jun 10, 2026
    ebf64d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: UIenhancementan enhancement to the product that is either not present or an improvement to an existing featuremore votes neededWe currently are de-prioritizing this issue until more community up-votes are provided

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions