esa / NIDN

Neural Inverse Design of Nanostructures
GNU General Public License v3.0
37 stars 6 forks source link

Fix incorrect logging leading to logger potentially being overriden #119

Open gomezzz opened 1 year ago

gomezzz commented 1 year ago

Issue

Problem Description

Current usage may overwrite loguru logger in other applications

Expected Behavior

Not interfering with user's logging

What Needs to be Done

Correct implementation is described here and here

How Can It Be Tested or Reproduced

Something along the lines of

from loguru import logger
logger.info("This should be printed")
import nidn
logger.info("This may not get printed I think")