logger-36 2025.16__py3-none-any.whl → 2025.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- logger_36/__init__.py +1 -15
- logger_36/api/content.py +1 -15
- logger_36/api/gpu.py +1 -15
- logger_36/api/memory.py +1 -15
- logger_36/api/storage.py +1 -15
- logger_36/api/system.py +1 -15
- logger_36/api/time.py +1 -15
- logger_36/api/type.py +1 -15
- logger_36/catalog/config/console_rich.py +1 -15
- logger_36/catalog/config/optional.py +1 -15
- logger_36/catalog/handler/console.py +4 -21
- logger_36/catalog/handler/console_rich.py +6 -34
- logger_36/catalog/handler/file.py +5 -24
- logger_36/catalog/handler/generic.py +17 -58
- logger_36/catalog/logger/chronos.py +1 -15
- logger_36/catalog/logger/gpu.py +1 -15
- logger_36/catalog/logger/memory.py +8 -20
- logger_36/catalog/logger/system.py +1 -15
- logger_36/config/issue.py +1 -15
- logger_36/config/memory.py +1 -15
- logger_36/config/message.py +1 -15
- logger_36/config/system.py +1 -15
- logger_36/constant/error.py +1 -15
- logger_36/constant/generic.py +1 -15
- logger_36/constant/html.py +1 -15
- logger_36/constant/issue.py +1 -15
- logger_36/constant/logger.py +1 -15
- logger_36/constant/memory.py +1 -15
- logger_36/constant/message.py +1 -15
- logger_36/constant/path.py +4 -18
- logger_36/constant/record.py +2 -17
- logger_36/constant/system.py +1 -15
- logger_36/extension/html_.py +1 -15
- logger_36/extension/line.py +1 -15
- logger_36/instance/logger.py +3 -16
- logger_36/instance/loggers.py +1 -15
- logger_36/task/format/memory.py +1 -15
- logger_36/task/format/message.py +1 -15
- logger_36/task/format/rule.py +1 -15
- logger_36/task/inspection.py +1 -15
- logger_36/task/measure/chronos.py +1 -15
- logger_36/task/measure/memory.py +1 -15
- logger_36/task/storage.py +1 -15
- logger_36/type/handler.py +10 -57
- logger_36/type/issue.py +1 -15
- logger_36/type/logger.py +50 -93
- logger_36/type/loggers.py +2 -17
- logger_36/type/message.py +1 -15
- logger_36/version.py +2 -16
- {logger_36-2025.16.dist-info → logger_36-2025.18.dist-info}/METADATA +2 -2
- logger_36-2025.18.dist-info/RECORD +53 -0
- logger_36/constant/handler.py +0 -58
- logger_36-2025.16.dist-info/RECORD +0 -54
- {logger_36-2025.16.dist-info → logger_36-2025.18.dist-info}/WHEEL +0 -0
- {logger_36-2025.16.dist-info → logger_36-2025.18.dist-info}/top_level.txt +0 -0
logger_36/__init__.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -53,18 +53,4 @@ The fact that you are presently reading this means that you have had
|
|
53
53
|
knowledge of the CeCILL license and that you accept its terms.
|
54
54
|
|
55
55
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
56
|
-
|
57
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
58
|
-
member of team Morpheme.
|
59
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
60
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
61
|
-
I3S, and Laboratory iBV.
|
62
|
-
|
63
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
64
|
-
Inria: https://www.inria.fr/en/
|
65
|
-
UniCA: https://univ-cotedazur.eu/
|
66
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
67
|
-
I3S: https://www.i3s.unice.fr/en/
|
68
|
-
iBV: http://ibv.unice.fr/
|
69
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
70
56
|
"""
|
logger_36/api/content.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -38,18 +38,4 @@ The fact that you are presently reading this means that you have had
|
|
38
38
|
knowledge of the CeCILL license and that you accept its terms.
|
39
39
|
|
40
40
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
41
|
-
|
42
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
43
|
-
member of team Morpheme.
|
44
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
45
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
46
|
-
I3S, and Laboratory iBV.
|
47
|
-
|
48
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
49
|
-
Inria: https://www.inria.fr/en/
|
50
|
-
UniCA: https://univ-cotedazur.eu/
|
51
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
52
|
-
I3S: https://www.i3s.unice.fr/en/
|
53
|
-
iBV: http://ibv.unice.fr/
|
54
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
55
41
|
"""
|
logger_36/api/gpu.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -36,18 +36,4 @@ The fact that you are presently reading this means that you have had
|
|
36
36
|
knowledge of the CeCILL license and that you accept its terms.
|
37
37
|
|
38
38
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
39
|
-
|
40
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
41
|
-
member of team Morpheme.
|
42
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
43
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
44
|
-
I3S, and Laboratory iBV.
|
45
|
-
|
46
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
47
|
-
Inria: https://www.inria.fr/en/
|
48
|
-
UniCA: https://univ-cotedazur.eu/
|
49
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
50
|
-
I3S: https://www.i3s.unice.fr/en/
|
51
|
-
iBV: http://ibv.unice.fr/
|
52
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
53
39
|
"""
|
logger_36/api/memory.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -46,18 +46,4 @@ The fact that you are presently reading this means that you have had
|
|
46
46
|
knowledge of the CeCILL license and that you accept its terms.
|
47
47
|
|
48
48
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
49
|
-
|
50
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
51
|
-
member of team Morpheme.
|
52
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
53
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
54
|
-
I3S, and Laboratory iBV.
|
55
|
-
|
56
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
57
|
-
Inria: https://www.inria.fr/en/
|
58
|
-
UniCA: https://univ-cotedazur.eu/
|
59
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
60
|
-
I3S: https://www.i3s.unice.fr/en/
|
61
|
-
iBV: http://ibv.unice.fr/
|
62
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
63
49
|
"""
|
logger_36/api/storage.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -37,18 +37,4 @@ The fact that you are presently reading this means that you have had
|
|
37
37
|
knowledge of the CeCILL license and that you accept its terms.
|
38
38
|
|
39
39
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
40
|
-
|
41
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
42
|
-
member of team Morpheme.
|
43
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
44
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
45
|
-
I3S, and Laboratory iBV.
|
46
|
-
|
47
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
48
|
-
Inria: https://www.inria.fr/en/
|
49
|
-
UniCA: https://univ-cotedazur.eu/
|
50
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
51
|
-
I3S: https://www.i3s.unice.fr/en/
|
52
|
-
iBV: http://ibv.unice.fr/
|
53
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
54
40
|
"""
|
logger_36/api/system.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -36,18 +36,4 @@ The fact that you are presently reading this means that you have had
|
|
36
36
|
knowledge of the CeCILL license and that you accept its terms.
|
37
37
|
|
38
38
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
39
|
-
|
40
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
41
|
-
member of team Morpheme.
|
42
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
43
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
44
|
-
I3S, and Laboratory iBV.
|
45
|
-
|
46
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
47
|
-
Inria: https://www.inria.fr/en/
|
48
|
-
UniCA: https://univ-cotedazur.eu/
|
49
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
50
|
-
I3S: https://www.i3s.unice.fr/en/
|
51
|
-
iBV: http://ibv.unice.fr/
|
52
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
53
39
|
"""
|
logger_36/api/time.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -37,18 +37,4 @@ The fact that you are presently reading this means that you have had
|
|
37
37
|
knowledge of the CeCILL license and that you accept its terms.
|
38
38
|
|
39
39
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
40
|
-
|
41
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
42
|
-
member of team Morpheme.
|
43
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
44
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
45
|
-
I3S, and Laboratory iBV.
|
46
|
-
|
47
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
48
|
-
Inria: https://www.inria.fr/en/
|
49
|
-
UniCA: https://univ-cotedazur.eu/
|
50
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
51
|
-
I3S: https://www.i3s.unice.fr/en/
|
52
|
-
iBV: http://ibv.unice.fr/
|
53
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
54
40
|
"""
|
logger_36/api/type.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -37,18 +37,4 @@ The fact that you are presently reading this means that you have had
|
|
37
37
|
knowledge of the CeCILL license and that you accept its terms.
|
38
38
|
|
39
39
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
40
|
-
|
41
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
42
|
-
member of team Morpheme.
|
43
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
44
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
45
|
-
I3S, and Laboratory iBV.
|
46
|
-
|
47
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
48
|
-
Inria: https://www.inria.fr/en/
|
49
|
-
UniCA: https://univ-cotedazur.eu/
|
50
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
51
|
-
I3S: https://www.i3s.unice.fr/en/
|
52
|
-
iBV: http://ibv.unice.fr/
|
53
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
54
40
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -59,18 +59,4 @@ The fact that you are presently reading this means that you have had
|
|
59
59
|
knowledge of the CeCILL license and that you accept its terms.
|
60
60
|
|
61
61
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
62
|
-
|
63
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
64
|
-
member of team Morpheme.
|
65
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
66
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
67
|
-
I3S, and Laboratory iBV.
|
68
|
-
|
69
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
70
|
-
Inria: https://www.inria.fr/en/
|
71
|
-
UniCA: https://univ-cotedazur.eu/
|
72
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
73
|
-
I3S: https://www.i3s.unice.fr/en/
|
74
|
-
iBV: http://ibv.unice.fr/
|
75
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
76
62
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -43,18 +43,4 @@ The fact that you are presently reading this means that you have had
|
|
43
43
|
knowledge of the CeCILL license and that you accept its terms.
|
44
44
|
|
45
45
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
46
|
-
|
47
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
48
|
-
member of team Morpheme.
|
49
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
50
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
51
|
-
I3S, and Laboratory iBV.
|
52
|
-
|
53
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
54
|
-
Inria: https://www.inria.fr/en/
|
55
|
-
UniCA: https://univ-cotedazur.eu/
|
56
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
57
|
-
I3S: https://www.i3s.unice.fr/en/
|
58
|
-
iBV: http://ibv.unice.fr/
|
59
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
60
46
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -13,29 +13,26 @@ from logger_36.type.handler import handler_t as base_t
|
|
13
13
|
|
14
14
|
|
15
15
|
class console_handler_t(base_t):
|
16
|
-
kind: h.ClassVar[str] = "c"
|
17
|
-
|
18
16
|
@classmethod
|
19
17
|
def New(
|
20
18
|
cls,
|
21
19
|
/,
|
22
20
|
*,
|
23
21
|
name: str | None = None,
|
24
|
-
should_store_memory_usage: bool = False,
|
25
22
|
message_width: int = -1,
|
26
23
|
level: int = l.NOTSET,
|
27
24
|
formatter: l.Formatter | None = None,
|
28
25
|
**_,
|
29
26
|
) -> h.Self:
|
30
27
|
""""""
|
31
|
-
return cls(name,
|
28
|
+
return cls(name, message_width, level, formatter)
|
32
29
|
|
33
30
|
def emit(self, record: l.LogRecord, /) -> None:
|
34
31
|
""""""
|
35
|
-
|
32
|
+
output = self.MessageFromRecord(
|
36
33
|
record, RuleAsText, line_width=self.message_width
|
37
34
|
)
|
38
|
-
s.__stdout__.write(
|
35
|
+
s.__stdout__.write(output[0] + "\n")
|
39
36
|
|
40
37
|
|
41
38
|
"""
|
@@ -68,18 +65,4 @@ The fact that you are presently reading this means that you have had
|
|
68
65
|
knowledge of the CeCILL license and that you accept its terms.
|
69
66
|
|
70
67
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
71
|
-
|
72
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
73
|
-
member of team Morpheme.
|
74
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
75
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
76
|
-
I3S, and Laboratory iBV.
|
77
|
-
|
78
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
79
|
-
Inria: https://www.inria.fr/en/
|
80
|
-
UniCA: https://univ-cotedazur.eu/
|
81
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
82
|
-
I3S: https://www.i3s.unice.fr/en/
|
83
|
-
iBV: http://ibv.unice.fr/
|
84
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
85
68
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -50,12 +50,9 @@ class console_rich_handler_t(base_t):
|
|
50
50
|
- 2: enabled for light background
|
51
51
|
"""
|
52
52
|
|
53
|
-
kind: h.ClassVar[str] = "c"
|
54
|
-
|
55
53
|
def __init__(
|
56
54
|
self,
|
57
55
|
name: str | None,
|
58
|
-
should_store_memory_usage: bool,
|
59
56
|
message_width: int,
|
60
57
|
level: int,
|
61
58
|
formatter: l.Formatter | None,
|
@@ -67,15 +64,7 @@ class console_rich_handler_t(base_t):
|
|
67
64
|
|
68
65
|
assert alternating_logs in (0, 1, 2)
|
69
66
|
|
70
|
-
base_t.__init__(
|
71
|
-
self,
|
72
|
-
name,
|
73
|
-
should_store_memory_usage,
|
74
|
-
message_width,
|
75
|
-
level,
|
76
|
-
formatter,
|
77
|
-
kwargs,
|
78
|
-
)
|
67
|
+
base_t.__init__(self, name, message_width, level, formatter, kwargs)
|
79
68
|
|
80
69
|
self.console = None # console_t | None.
|
81
70
|
self.alternating_logs = alternating_logs
|
@@ -105,16 +94,13 @@ class console_rich_handler_t(base_t):
|
|
105
94
|
/,
|
106
95
|
*,
|
107
96
|
name: str | None = None,
|
108
|
-
should_store_memory_usage: bool = False,
|
109
97
|
message_width: int = -1,
|
110
98
|
level: int = l.NOTSET,
|
111
99
|
formatter: l.Formatter | None = None,
|
112
100
|
**kwargs,
|
113
101
|
) -> h.Self:
|
114
102
|
""""""
|
115
|
-
return cls(
|
116
|
-
name, should_store_memory_usage, message_width, level, formatter, kwargs
|
117
|
-
)
|
103
|
+
return cls(name, message_width, level, formatter, kwargs)
|
118
104
|
|
119
105
|
def emit(self, record: l.LogRecord, /) -> None:
|
120
106
|
""""""
|
@@ -136,13 +122,13 @@ class console_rich_handler_t(base_t):
|
|
136
122
|
self.console.print(message, crop=False, overflow="ignore")
|
137
123
|
self._log_parity = not self._log_parity
|
138
124
|
|
139
|
-
def
|
125
|
+
def EmitAsIs(self, message: str | renderable_t, /) -> None:
|
140
126
|
""""""
|
141
127
|
self.console.print(message, crop=False, overflow="ignore")
|
142
128
|
|
143
|
-
def
|
129
|
+
def EmitRule(self, /, *, text: str | None = None, color: str = "black") -> None:
|
144
130
|
""""""
|
145
|
-
self.
|
131
|
+
self.EmitAsIs(Rule(text, color))
|
146
132
|
|
147
133
|
|
148
134
|
def HighlightedVersion(
|
@@ -203,18 +189,4 @@ The fact that you are presently reading this means that you have had
|
|
203
189
|
knowledge of the CeCILL license and that you accept its terms.
|
204
190
|
|
205
191
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
206
|
-
|
207
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
208
|
-
member of team Morpheme.
|
209
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
210
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
211
|
-
I3S, and Laboratory iBV.
|
212
|
-
|
213
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
214
|
-
Inria: https://www.inria.fr/en/
|
215
|
-
UniCA: https://univ-cotedazur.eu/
|
216
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
217
|
-
I3S: https://www.i3s.unice.fr/en/
|
218
|
-
iBV: http://ibv.unice.fr/
|
219
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
220
192
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -13,15 +13,12 @@ from logger_36.type.handler import file_handler_t as base_t
|
|
13
13
|
|
14
14
|
|
15
15
|
class file_handler_t(base_t):
|
16
|
-
kind: h.ClassVar[str] = "f"
|
17
|
-
|
18
16
|
@classmethod
|
19
17
|
def New(
|
20
18
|
cls,
|
21
19
|
/,
|
22
20
|
*,
|
23
21
|
name: str | None = None,
|
24
|
-
should_store_memory_usage: bool = False,
|
25
22
|
message_width: int = -1,
|
26
23
|
level: int = l.NOTSET,
|
27
24
|
formatter: l.Formatter | None = None,
|
@@ -29,19 +26,17 @@ class file_handler_t(base_t):
|
|
29
26
|
**_,
|
30
27
|
) -> h.Self:
|
31
28
|
""""""
|
32
|
-
return cls(
|
33
|
-
name, should_store_memory_usage, message_width, level, formatter, path
|
34
|
-
)
|
29
|
+
return cls(name, message_width, level, formatter, path)
|
35
30
|
|
36
31
|
def emit(self, record: l.LogRecord, /) -> None:
|
37
32
|
""""""
|
38
|
-
|
33
|
+
output = self.MessageFromRecord(
|
39
34
|
record, RuleAsText, line_width=self.message_width
|
40
35
|
)
|
41
|
-
self.stream.write(
|
36
|
+
self.stream.write(output[0] + "\n")
|
42
37
|
self.stream.flush()
|
43
38
|
|
44
|
-
def
|
39
|
+
def EmitAsIs(self, message: str, /) -> None:
|
45
40
|
""""""
|
46
41
|
self.stream.write(message + "\n")
|
47
42
|
self.stream.flush()
|
@@ -77,18 +72,4 @@ The fact that you are presently reading this means that you have had
|
|
77
72
|
knowledge of the CeCILL license and that you accept its terms.
|
78
73
|
|
79
74
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
80
|
-
|
81
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
82
|
-
member of team Morpheme.
|
83
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
84
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
85
|
-
I3S, and Laboratory iBV.
|
86
|
-
|
87
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
88
|
-
Inria: https://www.inria.fr/en/
|
89
|
-
UniCA: https://univ-cotedazur.eu/
|
90
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
91
|
-
I3S: https://www.i3s.unice.fr/en/
|
92
|
-
iBV: http://ibv.unice.fr/
|
93
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
94
75
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -29,7 +29,7 @@ LogAsIs_h = h.Callable[[str | h.Any], None]
|
|
29
29
|
|
30
30
|
|
31
31
|
@h.runtime_checkable
|
32
|
-
class
|
32
|
+
class EmitRule_p(h.Protocol):
|
33
33
|
def __call__(self, /, *, text: str | None = None, color: str = "white") -> None: ...
|
34
34
|
|
35
35
|
|
@@ -39,48 +39,30 @@ class generic_handler_t(base_t):
|
|
39
39
|
- 0: disabled
|
40
40
|
- 1: enabled for dark background
|
41
41
|
- 2: enabled for light background
|
42
|
-
|
43
|
-
LogAsIs:
|
44
|
-
Log a message as is, i.e. without formatting. If this is a method, it should
|
45
|
-
contain the same call(s) as the final ones in the emit methods that are used to
|
46
|
-
output the formatted log messages. This means that there is some code
|
47
|
-
duplication, but it avoids a (maybe negligible) slowing down that would arise
|
48
|
-
from calling this method at the end of the emit methods.
|
49
|
-
Here, since, by definition, the generic handler does not know how to output
|
50
|
-
messages, it is a callable attribute that must be set at instantiation time, and
|
51
|
-
it is indeed called at the end of the emit method.
|
52
42
|
"""
|
53
43
|
|
54
|
-
kind: h.ClassVar[str] = "g"
|
55
|
-
|
56
44
|
def __init__(
|
57
45
|
self,
|
58
46
|
name: str | None,
|
59
|
-
should_store_memory_usage: bool,
|
60
47
|
message_width: int,
|
61
48
|
level: int,
|
62
49
|
formatter: l.Formatter | None,
|
63
50
|
kwargs,
|
64
51
|
) -> None:
|
65
|
-
"""
|
52
|
+
"""
|
53
|
+
EmitAsIs: By definition, the generic handler does not know how to output
|
54
|
+
messages. If not passed, it defaults to output-ing messages in the console.
|
55
|
+
"""
|
56
|
+
EmitAsIs = kwargs.pop("EmitAsIs", None)
|
66
57
|
alternating_logs = kwargs.pop("alternating_logs", 0)
|
67
|
-
LogAsIs = kwargs.pop("LogAsIs", lambda _, indented=False: print(_))
|
68
58
|
supports_html = kwargs.pop("supports_html", False)
|
69
59
|
|
70
60
|
assert alternating_logs in (0, 1, 2)
|
71
61
|
|
72
|
-
base_t.__init__(
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
message_width,
|
77
|
-
level,
|
78
|
-
formatter,
|
79
|
-
kwargs,
|
80
|
-
)
|
81
|
-
|
82
|
-
self.LogAsIs = LogAsIs
|
83
|
-
self.DisplayRule = None # DisplayRule_p | None.
|
62
|
+
base_t.__init__(self, name, message_width, level, formatter, kwargs)
|
63
|
+
|
64
|
+
if EmitAsIs is not None:
|
65
|
+
self.EmitAsIs = EmitAsIs
|
84
66
|
self.console = None # console_t | None.
|
85
67
|
self.console_options = None # console_options_t | None.
|
86
68
|
self.alternating_logs = alternating_logs
|
@@ -95,9 +77,7 @@ class generic_handler_t(base_t):
|
|
95
77
|
self.console_options = self.console.options.update(
|
96
78
|
overflow="ignore", no_wrap=True
|
97
79
|
)
|
98
|
-
self.
|
99
|
-
else:
|
100
|
-
self.DisplayRule = self._DisplayRuleAsText
|
80
|
+
self.EmitRule = self._EmitRichRule
|
101
81
|
|
102
82
|
@classmethod
|
103
83
|
def New(
|
@@ -105,16 +85,13 @@ class generic_handler_t(base_t):
|
|
105
85
|
/,
|
106
86
|
*,
|
107
87
|
name: str | None = None,
|
108
|
-
should_store_memory_usage: bool = False,
|
109
88
|
message_width: int = -1,
|
110
89
|
level: int = l.NOTSET,
|
111
90
|
formatter: l.Formatter | None = None,
|
112
91
|
**kwargs,
|
113
92
|
) -> h.Self:
|
114
93
|
""""""
|
115
|
-
return cls(
|
116
|
-
name, should_store_memory_usage, message_width, level, formatter, kwargs
|
117
|
-
)
|
94
|
+
return cls(name, message_width, level, formatter, kwargs)
|
118
95
|
|
119
96
|
def emit(self, record: l.LogRecord, /) -> None:
|
120
97
|
""""""
|
@@ -162,18 +139,14 @@ class generic_handler_t(base_t):
|
|
162
139
|
"<pre style='margin-bottom:0px'>" + "".join(html_segments) + "</pre>"
|
163
140
|
)
|
164
141
|
|
165
|
-
self.
|
142
|
+
self.EmitAsIs(message)
|
166
143
|
self._log_parity = not self._log_parity
|
167
144
|
|
168
|
-
def
|
169
|
-
self, /, *, text: str | None = None, color: str = "
|
145
|
+
def _EmitRichRule(
|
146
|
+
self, /, *, text: str | None = None, color: str = "black"
|
170
147
|
) -> None:
|
171
148
|
""""""
|
172
|
-
self.
|
173
|
-
|
174
|
-
def _DisplayRule(self, /, *, text: str | None = None, color: str = "white") -> None:
|
175
|
-
""""""
|
176
|
-
self.LogAsIs(Rule(text, color))
|
149
|
+
self.EmitAsIs(Rule(text, color))
|
177
150
|
|
178
151
|
|
179
152
|
"""
|
@@ -206,18 +179,4 @@ The fact that you are presently reading this means that you have had
|
|
206
179
|
knowledge of the CeCILL license and that you accept its terms.
|
207
180
|
|
208
181
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
209
|
-
|
210
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
211
|
-
member of team Morpheme.
|
212
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
213
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
214
|
-
I3S, and Laboratory iBV.
|
215
|
-
|
216
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
217
|
-
Inria: https://www.inria.fr/en/
|
218
|
-
UniCA: https://univ-cotedazur.eu/
|
219
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
220
|
-
I3S: https://www.i3s.unice.fr/en/
|
221
|
-
iBV: http://ibv.unice.fr/
|
222
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
223
182
|
"""
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -44,18 +44,4 @@ The fact that you are presently reading this means that you have had
|
|
44
44
|
knowledge of the CeCILL license and that you accept its terms.
|
45
45
|
|
46
46
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
47
|
-
|
48
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
49
|
-
member of team Morpheme.
|
50
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
51
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
52
|
-
I3S, and Laboratory iBV.
|
53
|
-
|
54
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
55
|
-
Inria: https://www.inria.fr/en/
|
56
|
-
UniCA: https://univ-cotedazur.eu/
|
57
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
58
|
-
I3S: https://www.i3s.unice.fr/en/
|
59
|
-
iBV: http://ibv.unice.fr/
|
60
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
61
47
|
"""
|
logger_36/catalog/logger/gpu.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
Copyright CNRS/
|
2
|
+
Copyright CNRS (https://www.cnrs.fr/index.php/en)
|
3
3
|
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
4
4
|
SEE COPYRIGHT NOTICE BELOW
|
5
5
|
"""
|
@@ -73,18 +73,4 @@ The fact that you are presently reading this means that you have had
|
|
73
73
|
knowledge of the CeCILL license and that you accept its terms.
|
74
74
|
|
75
75
|
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
76
|
-
|
77
|
-
This software is being developed by Eric Debreuve, a CNRS employee and
|
78
|
-
member of team Morpheme.
|
79
|
-
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
80
|
-
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
81
|
-
I3S, and Laboratory iBV.
|
82
|
-
|
83
|
-
CNRS: https://www.cnrs.fr/index.php/en
|
84
|
-
Inria: https://www.inria.fr/en/
|
85
|
-
UniCA: https://univ-cotedazur.eu/
|
86
|
-
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
87
|
-
I3S: https://www.i3s.unice.fr/en/
|
88
|
-
iBV: http://ibv.unice.fr/
|
89
|
-
Team Morpheme: https://team.inria.fr/morpheme/
|
90
76
|
"""
|