(self, filename, file, levels=LEVELS, close_file=True)
| 43 | |
| 44 | class LogFile(object): |
| 45 | def __init__(self, filename, file, levels=LEVELS, close_file=True): |
| 46 | info("Also logging to {0}.", json.repr(filename)) |
| 47 | self.filename = filename |
| 48 | self.file = file |
| 49 | self.close_file = close_file |
| 50 | self._levels = frozenset(levels) |
| 51 | |
| 52 | with _lock: |
| 53 | _files[self.filename] = self |
| 54 | _update_levels() |
| 55 | info( |
| 56 | "{0} {1}\n{2} {3} ({4}-bit)\ndebugpy {5}", |
| 57 | platform.platform(), |
| 58 | platform.machine(), |
| 59 | platform.python_implementation(), |
| 60 | platform.python_version(), |
| 61 | 64 if sys.maxsize > 2**32 else 32, |
| 62 | debugpy.__version__, |
| 63 | _to_files=[self], |
| 64 | ) |
| 65 | |
| 66 | @property |
| 67 | def levels(self): |
nothing calls this directly
no test coverage detected