ALClient icon indicating copy to clipboard operation
ALClient copied to clipboard

Add Custom Logger

Open StormSurge95 opened this issue 3 years ago • 1 comments

Currently; the "best" option for logging packages looks like Winston as we can customize nearly everything about it fairly easily. At the moment though, my only hiccup is: how do we want format of the logs to look? Do we want timestamps? Do we want to show the level(s) of the log(s)? Do we want to be able to prettyprint JSON? Do we want basic coloring (as in just the log levels and/or the entirety of the message) or do we want advanced coloring (as in specific colors for JSON printing)?

Just to place a first suggestion: <hours>:<minutes>:<seconds>:<milliseconds> <level> [<character ID>]: <message>

StormSurge95 avatar Oct 08 '22 07:10 StormSurge95

I'd like to implement sending messages through an EventBus that plugins can listen to. That way a plugin can handle logging however it wants.

Related: #42

earthiverse avatar Aug 22 '24 00:08 earthiverse