Source code for jgdv.logging.record

 1#!/usr/bin/env python3
 2"""
 3
 4
 5
 6"""
 7# Import:
 8from __future__ import annotations
 9
10# ##-- stdlib imports
11import datetime
12import enum
13import functools as ftz
14import itertools as itz
15import logging as logmod
16import pathlib as pl
17import re
18import time
19import types
20import weakref
21from uuid import UUID, uuid1
22# ##-- end stdlib imports
23
24# ##-- types
25# isort: off
26import abc
27import collections.abc
28from typing import TYPE_CHECKING, cast, assert_type, assert_never
29from typing import Generic, NewType
30# Protocols:
31from typing import Protocol, runtime_checkable
32# Typing Decorators:
33from typing import no_type_check, final, override, overload
34
35if TYPE_CHECKING:
36    from jgdv import Maybe
37    from typing import Final
38    from typing import ClassVar, Any, LiteralString
39    from typing import Never, Self, Literal
40    from typing import TypeGuard
41    from collections.abc import Iterable, Iterator, Callable, Generator
42    from collections.abc import Sequence, Mapping, MutableMapping, Hashable
43
44##--|
45
46# isort: on
47# ##-- end types
48
49##-- logging
50logging = logmod.getLogger(__name__)
51##-- end logging
52
53# Vars:
54
55# Body:
56
[docs] 57class JGDVLogRecord(logmod.LogRecord): 58 """ A Basic extension of the log record. 59 60 needs the signature:: 61 62 factory(name, level, fn, lno, msg, args, exc_info, func=None, sinfo=None, **kwargs) 63 64 """ 65 pass