OXIESEC PANEL
- Current Dir:
/
/
snap
/
core20
/
2582
/
usr
/
lib
/
python3
/
dist-packages
/
probert
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/29/2025 04:07:53 PM
rwxr-xr-x
📄
__init__.py
731 bytes
08/04/2020 03:14:28 PM
rw-r--r--
📁
__pycache__
-
04/29/2025 04:07:53 PM
rwxr-xr-x
📄
_nl80211.cpython-38-x86_64-linux-gnu.so
27.37 KB
08/04/2020 03:30:19 PM
rw-r--r--
📄
_nl80211module.c
18.07 KB
08/04/2020 03:14:28 PM
rw-r--r--
📄
_rtnetlink.cpython-38-x86_64-linux-gnu.so
23.3 KB
08/04/2020 03:30:19 PM
rw-r--r--
📄
_rtnetlinkmodule.c
13 KB
08/04/2020 03:14:28 PM
rw-r--r--
📄
log.py
1.44 KB
08/04/2020 03:14:28 PM
rw-r--r--
📄
network.py
26.83 KB
08/04/2020 03:14:28 PM
rw-r--r--
📄
prober.py
1.21 KB
08/04/2020 03:14:28 PM
rw-r--r--
📁
tests
-
04/29/2025 04:07:53 PM
rwxr-xr-x
📄
utils.py
8.56 KB
08/04/2020 03:14:28 PM
rw-r--r--
Editing: log.py
Close
# Copyright 2015 Canonical, Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. 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