Closed luiscoms closed 4 years ago
@luiscoms,
Could you put the code snippet below in config/__init__.py
file and change the calls for the logger?
# config/__init__.py
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
# For example: config/auth.py
# but all files that use logging must be changed to logger
# from
logging.info("Access token successfully obtained.")
# to
logger.info("Access token successfully obtained.")
Hi @amenezes,
I did the update, but change this cause that logger name is always 'config', not 'config.spring'
Yes. It's because of the name of the __name__
module. It is useful if in your application, for example, you want to disable library log messages. We can change to config-client
what do you think?
Any other considerations?
In order to log on
config
module instead ofroot
logger, This pull request replace logging by logger