Skip to content

enable a logging level configuration flag #199

Description

@thescientist13

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

As might be the case with certain plugins are other parts of Greenwood's build pipeline, having a production flag that is set during the config lifecycle based on whether it is a develop or build CLI command.

Basically, establish a way to enable different modes, e.g.

export default {
  logger: 'debug' | 'prod'
}
  • debug: extra (meaningful) console logging (user config, graph)
  • prod: Just the basic status message we already see now

This would just be a more formal variation of https://greenwoodjs.dev/docs/reference/appendix/#environment-variables

Details

A good use case could be to disable / configure an Analytics plugin when developing vs building for production. Also, this could be used to enable additional debug logs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITypes(cript)Requires type definition or TypeScript related work / documentationdocumentationGreenwood specific docsfeatureNew feature or request
    No fields configured for Feature.

    Projects

    Status
    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions