You are setting up both a console and a file logger, but the `console` parameter is not used. If you intend to have an option to switch off console logging, you should use this parameter to conditionally add the StreamHandler.
if console:
sh = logging.StreamHandler(sys.stdout)
sh.setFormatter(formatter)
L.addHandler(sh)
_Originally posted by @robyngit in https://github.com/PermafrostDiscoveryGateway/viz-points/pull/12#discussion_r1195526032_