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: Add logging with tracing #1041

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: Add logging with tracing #1041

wants to merge 1 commit into from

Conversation

kdheepak
Copy link
Contributor

@kdheepak kdheepak commented Sep 6, 2024

This PR adds the setup for logging using the tracing module.

After init_logging is called, a log file will be created in one of these locations (per XDG standard):

image

or in a folder in the environment variable JULIAUP_DATA_HOME or in the current directory.

tracing::info! or tracing::debug! can be used to log into the log file.

Additionally, RUST_LOG environment variable can be used to control the logs for the various modules or dependencies.

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.

1 participant