Skip to content

Pluggable Logger #187

@antfu

Description

@antfu

Describe the feature

I want to use the command programmically by calling runCommand and get the output (to feedback to LLM). Currently nuxi uses a global singleton logger and not swappable (https://github.com/nuxt/cli/blob/692e6a97f673985de376489aa82854b88435f4cf/packages/nuxi/src/utils/logger.ts#L4), I would wish a standardized logger in city, and a logger option in runCommand to override the default logger for us to grab the information (or provide different rendering).

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions