Separate the logging #27

Open
lecris wants to merge 6 commits from lecris/matrix-puppeteer-line:logger into testing
lecris commented 2 years ago

Here's an initial wip for the logger so we can mitigate the spam. Currently only wrote it for puppet.js. Had to add them all because too much spam :D. Haven't gone through all messages meticulously to figure out what type they should be, so please check them.

I've left it open so the log level can be changed at runtime, although this would only make sense if we can pipe in the log to matrix or something. At least it can be adjusted for individual users in the future.

Also maybe we can change the output so that some messages can be pipped to matrix chat

Here's an initial wip for the logger so we can mitigate the spam. ~~Currently only wrote it for `puppet.js`.~~ Had to add them all because too much spam :D. Haven't gone through all messages meticulously to figure out what type they should be, so please check them. I've left it open so the log level can be changed at runtime, although this would only make sense if we can pipe in the log to matrix or something. At least it can be adjusted for individual users in the future. Also maybe we can change the output so that some messages can be pipped to matrix chat
lecris added 1 commit 2 years ago
lecris added 1 commit 2 years ago
4e639ee2ff Mistakes and nullchecks
lecris added 1 commit 2 years ago
lecris added 1 commit 2 years ago
lecris added 1 commit 2 years ago
lecris added 1 commit 2 years ago
lecris changed title from Separate the logging logic to Separate the logging 2 years ago
Poster

I've also seen in the examples that they use chalk to color and format the log messages. Are you on board with using that?

I've also seen in the examples that they use `chalk` to color and format the log messages. Are you on board with using that?
This pull request can be merged automatically.
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: fair/matrix-puppeteer-line#27
Loading…
There is no content yet.