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

Method __init__

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

The original FileHandler's init is called, right after the directory used to store the objection logfile is created. :param filename: :param mode: :param encoding: :param delay:

(self, filename: str, mode: str = 'a', encoding: str = None, delay: bool = False)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected