Repository navigation
Suggestion: Add timestamps to logs #4057
Copy link
Copy link
Closed
Labels
Feature: UIenhancementan enhancement to the product that is either not present or an improvement to an existing featurean 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 providedWe currently are de-prioritizing this issue until more community up-votes are provided
Milestone
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:
vscode-cmake-tools/src/logging.ts
Line 150 in 406216a
| const trace = vscode.workspace.getConfiguration('cmake').get('enableTraceLogging', false); |
e.g.
const debugInOutput = vscode.workspace.getConfiguration('cmake').get('enableDebugInOutput', false);and used here:
vscode-cmake-tools/src/logging.ts
Lines 178 to 181 in 406216a
| // 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);
}
} Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature: UIenhancementan enhancement to the product that is either not present or an improvement to an existing featurean 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 providedWe currently are de-prioritizing this issue until more community up-votes are provided
Type
Projects
- StatusShow more project fieldsCompleted
Activity
Add cmake.showTimestampsInOutput setting to display timestamps in outâĶ