Update logging config to create a logger based on __name__ rather than using the root logger. This way, users who import public_ip will be able to interact with the package's logger.
For example, let's say a user has their own logger configured, and for debugging purposes they only want to see logging messages generated by their script. The following snippet would prevent any debug or info level logging messages from the public_ip package being output to the console.
Update logging config to create a logger based on
__name__
rather than using the root logger. This way, users who importpublic_ip
will be able to interact with the package's logger.For example, let's say a user has their own logger configured, and for debugging purposes they only want to see logging messages generated by their script. The following snippet would prevent any
debug
orinfo
level logging messages from thepublic_ip
package being output to the console.This PR also updates logging level to use
debug
rather thaninfo
.