-
Notifications
You must be signed in to change notification settings - Fork 6
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
Posting capabilities #35
base: development
Are you sure you want to change the base?
Posting capabilities #35
Conversation
do you think it would be a good idea to make LogReturn extend Error because I remember there was an issue when throwing errors so we had to wrap in Error, for example: |
Yeah it practically does so already although |
Yes I think so |
Okay thinking about this more:
I'm not sure that it is such a good idea to have |
I'm not sure I quite understand what's the problem with creating an Error class
as I understand the
We can still add our own properties for formatting and other stuff. I just like to use standardised types but it's your call if you think it's not feasible or doesn't add enough value |
I gathered from our original problem that you mentioned that the issue was because we were not throwing an
I think it's a good idea as it makes error handling less verbose with conditionals etc but if it does cause issues with test suites I think it might be more hassle than it's worth |
Hmm I'm not sure but I don't see why the test suite would regard it as unhandled error - we can test to be sure |
Co-authored-by: アレクサンダー.eth <[email protected]>
This reverts commit d038d53.
Resolves #44
Related to https://github.com/ubiquibot/kernel-logger/pull/2
For now only one storage integration is needed but once others are needed/ready the param can be made into a dynamic type which helps type the correct inputs needed for that storage location
With the configurability aspect of which levels to store the use of
fatal
should no longer be avoided.