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

Overwrite the default DLT context through dotenv #8

Open
lilianmoraru opened this issue Mar 5, 2017 · 0 comments
Open

Overwrite the default DLT context through dotenv #8

lilianmoraru opened this issue Mar 5, 2017 · 0 comments

Comments

@lilianmoraru
Copy link
Owner

lilianmoraru commented Mar 5, 2017

DLT requires a DLT context to be registered before starting to log messages.
We will offer functions to the user to register the DLT context, but to make the library easily swappable with env_logger, we will choose a default context RUST(there is a limit on the number of characters and this fits well and seems reasonable).

The idea is to offer the user the possibility to choose another default context through .env(dotenv crate) and a variable called something like: DLT_DEFAULT_CONTEXT.
Of course, the user doesn't have to use .env, he could also just export this variable before starting a build.

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

No branches or pull requests

1 participant