Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Config] Allow users to disable log messages with the calciteConfig's logLevel #11704

Open
geospatialem opened this issue Mar 6, 2025 · 1 comment
Assignees
Labels
1 - assigned Issues that are assigned to a sprint and a team member. estimate - 3 A day or two of work, likely requires updates to tests. p - medium Issue is non core or affecting less that 60% of people using the library tooling Issues relating to build system fixes or improvements.

Comments

@geospatialem
Copy link
Member

Priority impact

p - medium

Summary

Currently users have to set the calciteConfig's logLevel and version to "off" to disable console log messages in production environments. We should aim to disable all log messages with logLevel.

Current behavior requires disabling the logLevel and version:

// Disable log messages and version
var calciteConfig = {
  logLevel: "off",
  version: "off"
};

cc @jcfranco

Desired Outcome

// Disable log messages with logLevel
var calciteConfig = {
  logLevel: "off",
};

Resources

https://codepen.io/geospatialem/pen/abgwvbP

@geospatialem geospatialem added 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. tooling Issues relating to build system fixes or improvements. labels Mar 6, 2025
@github-actions github-actions bot added the p - medium Issue is non core or affecting less that 60% of people using the library label Mar 6, 2025
@geospatialem geospatialem added 1 - assigned Issues that are assigned to a sprint and a team member. estimate - 3 A day or two of work, likely requires updates to tests. and removed 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Mar 6, 2025
@macandcheese
Copy link
Contributor

macandcheese commented Mar 6, 2025

Could these logs be opt-in for production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - assigned Issues that are assigned to a sprint and a team member. estimate - 3 A day or two of work, likely requires updates to tests. p - medium Issue is non core or affecting less that 60% of people using the library tooling Issues relating to build system fixes or improvements.
Projects
None yet
Development

No branches or pull requests

3 participants