Use exclusively loguru for logging output but warnings.warn
internally
#2588
Labels
enhancement
New feature or request
warnings.warn
internally
#2588
Is your feature request related to a problem? Please describe.
Continuing from #2451 (comment). As using
warnings.warn
seems to be chosen way but loguru is still used, it would be nice if only one of these were used for logging by default. Loguru is the nicer looking option and a dependency we have so that should be the choice.I suggest handling printing the output with only loguru but keeping using warnings.warn for the warning category and exception support.
Describe the solution you'd like
The following subtasks should allow switching the default logger output to loguru without losing relevant information.
stacklevel
inwarnings.warn
for loguru output #2589warnings.warn
category to loguru output #2590gf.config.warn
or similar #2591After these steps, I think we can disable the showwarning call found in
gdsfactory/gdsfactory/config.py
Line 298 in 2da3d26
The text was updated successfully, but these errors were encountered: