Quick-Python-Print icon indicating copy to clipboard operation
Quick-Python-Print copied to clipboard

Whether to support loguru logger?

Open ioslide opened this issue 3 years ago • 3 comments
trafficstars

Be deeply grateful!!

ioslide avatar Nov 14 '22 06:11 ioslide

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 avatar Apr 12 '23 06:04 wwdok

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

wwdok avatar Apr 13 '23 05:04 wwdok

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

wwdok avatar Sep 30 '23 16:09 wwdok