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

Feat/logger #103

Merged
merged 2 commits into from
Mar 16, 2022
Merged

Feat/logger #103

merged 2 commits into from
Mar 16, 2022

Conversation

fabiodrg
Copy link
Collaborator

A quick proposal to fix #102

image

Logger.debug("isto", "é", "um", "teste");
Logger.debug({a: 123});
Logger.error("Lorem Ipsum");
Logger.info("Lorem Ipsum");
Logger.log("Lorem Ipsum");
Logger.warn("Lorem Ipsum");

When running gulp in production mode, the logger is disabled

It allows to change JS/HTML/... files depending on environment
variables. It is similar to macros in C where you can inject code if
some environment variables are set. Docs: https://www.npmjs.com/package/gulp-preprocess

The preprocess will be used to enabled/disable a the logger according to
the development and production modes. See #102
@fabiodrg fabiodrg changed the base branch from master to dev March 16, 2022 18:04
@fabiodrg fabiodrg merged commit 6c6f08b into dev Mar 16, 2022
@fabiodrg fabiodrg deleted the feat/logger branch March 24, 2022 10:41
@fabiodrg fabiodrg added this to Done in v4.2 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v4.2
  
Done
Development

Successfully merging this pull request may close these issues.

Add a logging mechanism
1 participant