Skip to content
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

feat: my attempt to support more loggers, other than just console.log #62

Merged
merged 3 commits into from
Aug 21, 2020
Merged

feat: my attempt to support more loggers, other than just console.log #62

merged 3 commits into from
Aug 21, 2020

Conversation

ClintEsteMadera
Copy link
Contributor

@ClintEsteMadera ClintEsteMadera commented Aug 11, 2020

Hi, I'm sending this contribution for your consideration. I would be really happy if this feature could be published in the library as soon as possible as I prefer not having to publish my own version in my private NPM repo...

This is the first time I contribute to an open source project so any feedback will be appreciated!

Attempts to implement the feature request #53

@hg-pyun hg-pyun self-assigned this Aug 19, 2020
src/common/print.ts Outdated Show resolved Hide resolved
src/common/__test__/config.spec.js Outdated Show resolved Hide resolved
@hg-pyun hg-pyun added the enhancement New feature or request label Aug 19, 2020
@hg-pyun hg-pyun mentioned this pull request Aug 19, 2020
5 tasks
Jonathan Chiocchio added 2 commits August 19, 2020 21:52
i.e. the user has to specify the `logger` function. Defaults to: `console.log`
Copy link
Contributor Author

@ClintEsteMadera ClintEsteMadera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this solution should keep everyone happy, hope you guys like it and that we can avail of v2.4.0 as soon as possible :-) Cheers!

@@ -116,13 +116,17 @@ instance.interceptors.request.use((request) => {

#### Enable config list

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see https://github.com/ClintEsteMadera/axios-logger/tree/add-support-for-other-loggers-than-just-console-log#enable-config-list to appreciate how this will look like. I think it's a tad cleaner this way...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good table!

Copy link

@KevLehman KevLehman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!!

Copy link
Owner

@hg-pyun hg-pyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hg-pyun
Copy link
Owner

hg-pyun commented Aug 21, 2020

@ClintEsteMadera I will merge tomorrow.

@hg-pyun hg-pyun merged commit 81b4195 into hg-pyun:master Aug 21, 2020
@ClintEsteMadera
Copy link
Contributor Author

@hg-pyun awesome! Please do let me know when the new release is published in NPM...thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants