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

Whether to support loguru logger? #2

Open
ioslide opened this issue Nov 14, 2022 · 3 comments
Open

Whether to support loguru logger? #2

ioslide opened this issue Nov 14, 2022 · 3 comments

Comments

@ioslide
Copy link

ioslide commented Nov 14, 2022

Be deeply grateful!!

@wwdok
Copy link
Owner

wwdok commented Apr 12, 2023

To support other print function like loguru logger or logging logger, there are two methods:

  1. Allow user to define customized print function in extension settings, the default setting is print, but you can change it to logger.debug.
  2. User defines a alias name for customized print function, here is print = logger.debug, I tested it, it works:
    image
    But this require change the print format, e.g. change print("==>> a: ", a) to print(f"==>> a: {a}")

Which one do you prefer, I prefer the second method

@wwdok
Copy link
Owner

wwdok commented Apr 13, 2023

The version 0.2.0 has adopted the second method, you can give it a try.

@wwdok
Copy link
Owner

wwdok commented Sep 30, 2023

Hi, @ioslide , the version 0.3.0 has adopted the first method, you can go to the setting, change the print funtion to logger.debug like:
image

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

No branches or pull requests

2 participants