MCPcopy Create free account
hub / github.com/sensepost/objection / MakeFileHandler

Class MakeFileHandler

objection/utils/__init__.py:10–27  ·  view source on GitHub ↗

Wrapper Class around the builtin Filehandler.

Source from the content-addressed store, hash-verified

8
9
10class MakeFileHandler(logging.FileHandler):
11 """
12 Wrapper Class around the builtin Filehandler.
13 """
14
15 def __init__(self, filename: str, mode: str = 'a', encoding: str = None, delay: bool = False) -> None:
16 """
17 The original FileHandler's init is called, right after the
18 directory used to store the objection logfile is created.
19
20 :param filename:
21 :param mode:
22 :param encoding:
23 :param delay:
24 """
25
26 os.makedirs(os.path.dirname(filename), exist_ok=True)
27 logging.FileHandler.__init__(self, filename, mode, encoding, delay)
28
29
30def new_secho(text: str, **kwargs) -> None:

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…