-
Notifications
You must be signed in to change notification settings - Fork 75
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
Prettify stdout #755
Comments
Great idea! It might make sense to put logs in |
@sarthakpati Assign this to me |
Stale issue message |
I believe @sylwiamm is still working on this. |
Hi guys, I hope you are well.
|
Hi @sarthakpati, The configuration of logging in yaml format can be like this. version: 1
formatters:
detailed:
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
debugHandler:
class: logging.FileHandler
filename: gandlf.log
formatter: detailed
level: DEBUG
Loggers:
debug_logger:
level: DEBUG
root:
level: DEBUG
handlers: [debugHandler] define a def for reading the config file
We can use the logger directly in the module with this:
I hope now is more clear. If @VukW can provide any comment, it would be very helpful. |
Hi folks!
I'm always afraid of yaml logging config files, but if you are able to configure it properly - that's fine solution IMO 🤔 don't loggers inherit settings from each other? Can we configure just root logger (or some
|
UPD @benmalef I tested your configuration with a logger that is not defined in .yaml. It works well also as it inherits from |
Hi @VukW, I hope you are well.
Hmm, okay. I believe it is more user-friendly, but it is the first time I have tried to implement logging. If you have any suggestions or recommendations, they are kindly accepted. |
Yes, you are right, I have tested, too. Thanks for your comment :P. |
Is your feature request related to a problem? Please describe.
The STDOUT can be full of warnings, it should be more user friendly
Describe the solution you'd like
Make GaNLDF's stdout more user friendly (how?)
Describe alternatives you've considered
N/A
Additional context
Warnings could be useful debugging. Perhaps we can have an organized logging system: current stdout can be split into stdout for users, and debugging logs in a
~/.gandlf_logs
file for example.The text was updated successfully, but these errors were encountered: