Skip to content

[FEAT cloudctl] - Add structured logging and verbosity levels #50

@onuryilmaz

Description

@onuryilmaz

[FEAT cloudctl] - Add structured logging and verbosity levels

Labels

  • feature
  • observability
  • easy-to-use

Priority

(Medium) I'm annoyed but I'll live

User Story

As a developer or AI agent, I can see structured logs with different verbosity levels, so that I can debug issues more effectively and parse output programmatically.

Description

The current implementation uses standard log.Println which is not structured and lacks levels. Switching to log/slog (modern Go) or a similar library will allow JSON output (AI-friendly) and better debugging with -v/--verbose or --log-level flags.

Acceptance Criteria

  • Replace log package usages with log/slog.
  • Implement a --log-level flag (debug, info, warn, error).
  • Implement a --log-format flag (text, json).
  • Ensure sync command logs detailed merging decisions at debug level.

Reference Issues

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogReady for sprint planning; triggers project additioneasy-to-useImprovements to User Experience (UX), CLI ergonomics, and simplicityfeatureNew functional capabilities or significant additions to the CLI.needs-refinementNeeds scoping before implementationobservabilityFeatures improving logging, metrics, or diagnostic information

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Sprint Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions