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

Remove logging calls? #2

Open
Iapetus-11 opened this issue Jan 25, 2021 · 1 comment
Open

Remove logging calls? #2

Iapetus-11 opened this issue Jan 25, 2021 · 1 comment

Comments

@Iapetus-11
Copy link

Iapetus-11 commented Jan 25, 2021

Reasoning

  • Could be unnecessary if your library used in a full application.
  • Adds unnecessary overhead to method calls.
  • It should be up to the end developer to implement their own type of logging if they want to.

Btw, your library looks really good otherwise!

@Kellador
Copy link
Owner

Hey, sorry for the super late response!

The way I have been using my library has mostly been as a library in a REPL or in small CLI applications, and in those cases the logging output has been tremendously useful to diagnose problems with the files I was working on (mostly region files that got corrupted by missbehaving mods or Forge updates...), so I don't think simply removing the logging calls without replacement would be a good idea.

Overhead should not be a concern, as the actual meaty part (the NBT parsing) has no logging whatsoever, and most logging is only there to notify users of edge cases during de-/encoding of region files.

I definitely agree though that logging should be up to the end developer, and I havn't really taken that into consideration, so I'm gonna see if I can come up with a good replacement for these logging calls, possibly a running tally of these edge case issues that could then be used by said end developer to better inform their own logging decisions.

Also, thanks for the compliment 😄

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