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(Console): provide a mean to log only in dev #794

Merged
merged 2 commits into from
Mar 30, 2024
Merged

Conversation

pylafleur
Copy link
Contributor

@pylafleur pylafleur commented Mar 28, 2024

DS-1092

Wrapper pour l'objet global console qui permet de logger seulement en dev. Rien n'est affiché dans la console dans le build pour la production ni dans les tests.

Usage:

import { devConsole } from '../utils/dev-console';

devConsole.warn('WARNING (only for devs)');

Évidemment, pour logger en tout temps, console.log et autres continuent de fonctionner tel quel.

@pylafleur pylafleur requested a review from a team as a code owner March 28, 2024 15:16
Copy link

Storybook for this build: https://ds.equisoft.io/pr-794/

@pylafleur pylafleur merged commit 78bdf72 into master Mar 30, 2024
20 checks passed
@pylafleur pylafleur deleted the dev/DS-1092 branch March 30, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants