/snap/core22/2411/usr/lib/python3/dist-packages/probert
NameSizeModeActions
tests/-0755rm
__pycache__/-0755rm
log.py13890644editdlrm
network.py279160644editdlrm
prober.py11580644editdlrm
utils.py90010644editdlrm
_nl80211.cpython-310-x86_64-linux-gnu.so276240644editdlrm
_nl80211module.c185470644editdlrm
_rtnetlink.cpython-310-x86_64-linux-gnu.so234320644editdlrm
_rtnetlinkmodule.c133400644editdlrm
__init__.py6470644editdlrm
Edit: /snap/core22/2411/usr/lib/python3/dist-packages/probert/log.py (1389B)
# Copyright 2015 Canonical, Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . import logging import os from logging.handlers import TimedRotatingFileHandler def setup_logger(name=__name__): LOGDIR = "logs" LOGFILE = os.path.join(LOGDIR, "debug.log") if not os.path.isdir(LOGDIR): os.makedirs(LOGDIR) log = TimedRotatingFileHandler(LOGFILE, when='D', interval=1, backupCount=7) log.setLevel('DEBUG') log.setFormatter(logging.Formatter( "%(asctime)s " "%(name)s:%(lineno)d %(message)s", datefmt='%m/%d %H:%M')) log_filter = logging.Filter(name='probert') log.addFilter(log_filter) logger = logging.getLogger('') logger.setLevel('DEBUG') logger.addHandler(log) return logger