-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Milestone
Description
Describe the feature
This file defines our logging tools for the CDK CLI. Refactor the logging implementation into a single logging function which takes both a message and the logging type (info, debug, trace, error, etc...), and then additionally ensure any logging in the package uses this logging function.
Use Case
needed to support future CDK Programmatic Access, but also Centralizes and consolidates logging for the CLI.
Proposed Solution
Probably something like
export type LogLevel = 'error' | 'warn' | 'info' | 'debug' | 'trace';
export interface LogEntry = {
level: LogLevel
message: string
}
export function log(...args: LogEntry[]) {
// do the stuff
}
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.165
Environment details (OS name and version, etc.)
macOS 15 Sequoia
Metadata
Metadata
Assignees
Labels
effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI