-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comment style #53
base: development
Are you sure you want to change the base?
Comment style #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant entries should be replaced.
error: "!", // ! text in orange | ||
info: "#", // # text in gray | ||
debug: "@@@@", // @@ text in purple (and bold)@@ | ||
private _diffColorCommentMessage(type: LogLevelWithOk, message: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also no longer called diff
We have more logger methods than possible formattings. I'd remove |
Tested here: Meniole/ubiquity-os-kernel#20 Works fine. Maybe it is strange to have |
We can try your suggestions and iterate after. I still think that we should use client error and server error because that is not ambiguous and all plug-in developers are more likely to agree on the definitions and conform to the standard |
What is server and what is client? Because the kernel, the Actions and the Workers can all post errors. I think this should be the responsibility of the developer to add these in the metadata and not in the message itself |
I think this should be in the metadata, it doesn't give any useful information to the user, and for the debug we now have the url inside of the metadata and can easily figure out what broke. A logger should be generic and able to log anything without depending on the platform or environment, which is why we could embed this info in the metadata (which becomes the SDK responsibility) |
Generally, I agree, but when I first implemented this, I was trying to solve a problem of logging in three separate places:
Due to these requirements this was designed specifically for this platform and environment (UbiquityOS plugins, interacting with GitHub) |
So I still don't see the benefit in separating |
@whilefoo yes or contained within a code block? But that was just a suggestion I don't mind it the way it is, just that we maybe want debug to stand out because it is non-normal logs. |
Wouldn't making it without header make it stand out less :D |
@whilefoo Fair enough haha. Yes across our plugins I don't think verbose is used much, maybe in |
That's true, |
Resolves #50