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

proper logging #268

Open
NotAFile opened this issue Jul 1, 2016 · 0 comments
Open

proper logging #268

NotAFile opened this issue Jul 1, 2016 · 0 comments

Comments

@NotAFile
Copy link
Contributor

NotAFile commented Jul 1, 2016

As it currently is everything and everybody just dumps their stuff into stdout and stderr without any indication of what the message is, what it means, where it came from and how important it is.

Ideally, the logging solution would:

  • have all the standard loglevels (debug, info, warning, error, critical)
  • be callable from both lua and C
  • allow setting of the loglevel below which the messages get ignored with command line arguments
  • allow logging to a file instead of stdout and stderr (would also fix Log to file #130)
  • allow setting the loglevel on a per-module basis (so you can debug your mod while not getting engine spam)
  • print source and (optionally) time of message. Time would be useful as a server admin if you are trying to correlate events, or how frequent a certain error or warning happens.
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