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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for defaults from a config file #68

Closed
aphistic opened this issue Dec 5, 2022 · 2 comments
Closed

Support for defaults from a config file #68

aphistic opened this issue Dec 5, 2022 · 2 comments

Comments

@aphistic
Copy link

aphistic commented Dec 5, 2022

First of all, thanks for this tool! I had an idea to make this for myself and was pleasantly surprised to find this already existed. 馃槃

I was wondering if it would be possible to add support to pull default configuration from a config file somewhere like ~/.config/fblog/fblog.toml, or somewhere similar, and maybe the ability to provide a config path on the command line? Our logs have a few fields that don't make sense to add as auto-detected fields but are still helpful to show when they come up. Including those by default from a config file would allow me to set up some defaults without needing to remember (or type) them every time.

Thanks again!

@bomgar
Copy link
Member

bomgar commented Dec 6, 2022

I'm not against a config file. If would merge a PR for it.
From your description I think you could also use an alias or multiple aliases for different log types. If this is sufficient I would rather avoid the config file support.

@aphistic
Copy link
Author

aphistic commented Dec 6, 2022

Ah, that's true. I could definitely use an alias instead. I didn't even think of that, haha.

@aphistic aphistic closed this as completed Dec 6, 2022
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

2 participants