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

Create a logger util #2185

Closed
Tracked by #2168
kevkevinpal opened this issue Dec 13, 2024 · 2 comments · Fixed by #2225
Closed
Tracked by #2168

Create a logger util #2185

kevkevinpal opened this issue Dec 13, 2024 · 2 comments · Fixed by #2225
Assignees

Comments

@kevkevinpal
Copy link
Contributor

kevkevinpal commented Dec 13, 2024

Goal

We want to create a logger util that we can use throughout the codebase to give us the ability to format the logs uniformly throughout the sphinx-tribes application

Description

In ./utils/logger.go create a new file which we can import throughout the app which we can use the following way

logger.info("Sample log text %s", example_variable
logger.error("Sample log text %s", example_variable
logger.debug("Sample log text %s", example_variable

Note

It is also worth checking to see if there are any modules that we can use that already do this and that we can extend if we need to

@aliraza556
Copy link
Contributor

@kevkevinpal Please assign me?

@MahtabBukhari
Copy link
Contributor

@kevkevinpal please assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants