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

Add a configuration API #19

Closed
emkis opened this issue May 7, 2022 · 2 comments
Closed

Add a configuration API #19

emkis opened this issue May 7, 2022 · 2 comments
Assignees
Labels
feature New feature or request released

Comments

@emkis
Copy link
Owner

emkis commented May 7, 2022

Description

I want to be able to configure Logs to change some behaviors based on my needs.

Use cases

  • Enable or disable logs based on the environment or anything else
  • Control the levels of logs that are triggered

Proposal

import { configure } from 'gtm-event-tracker'

configure({
  logger: {
    debugAll: true,
    debugEvents: true,
    debugContext: true,
  },
})
@emkis emkis added the feature New feature or request label May 7, 2022
@emkis emkis self-assigned this May 7, 2022
emkis added a commit that referenced this issue May 16, 2022
emkis added a commit that referenced this issue May 16, 2022
emkis added a commit that referenced this issue May 16, 2022
@emkis
Copy link
Owner Author

emkis commented May 16, 2022

Feature was implemented on #25, closing this issue.

@emkis emkis closed this as completed May 16, 2022
emkis added a commit that referenced this issue Jun 7, 2022
@github-actions
Copy link

🎉 This issue has been resolved in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request released
Projects
None yet
Development

No branches or pull requests

1 participant