add central logger #25
Labels
No labels
complexity
high
complexity
low
complexity
medium
importance
high
importance
low
importance
medium
type
bug
type
chore
type
feature suggestion
type
missing feature
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
thetxt/oxide#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
implement a central logger that can be used to log events, distinguishing between different levels of severity and modules.
Add config for which levels/modules should be written to a log file, send to stdout/stderr and send ingame to operators
Do you think it should be implemented with separate functions like log() warn() and error() for each log level or as an argument like log(2) for a log level of 2. In addition, where would be an appropriate place to implement it, in the lib or server?
I haven't thought a lot about it yet, but I think having separate functions should be cleaner. It would probably make more sense in the lib with an instance of it being part of the central Game struct