logger-36 2025.17__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.
Files changed (55) hide show
  1. logger_36/__init__.py +1 -15
  2. logger_36/api/content.py +1 -15
  3. logger_36/api/gpu.py +1 -15
  4. logger_36/api/memory.py +1 -15
  5. logger_36/api/storage.py +1 -15
  6. logger_36/api/system.py +1 -15
  7. logger_36/api/time.py +1 -15
  8. logger_36/api/type.py +1 -15
  9. logger_36/catalog/config/console_rich.py +1 -15
  10. logger_36/catalog/config/optional.py +1 -15
  11. logger_36/catalog/handler/console.py +3 -19
  12. logger_36/catalog/handler/console_rich.py +4 -20
  13. logger_36/catalog/handler/file.py +4 -20
  14. logger_36/catalog/handler/generic.py +14 -43
  15. logger_36/catalog/logger/chronos.py +1 -15
  16. logger_36/catalog/logger/gpu.py +1 -15
  17. logger_36/catalog/logger/memory.py +1 -15
  18. logger_36/catalog/logger/system.py +1 -15
  19. logger_36/config/issue.py +1 -15
  20. logger_36/config/memory.py +1 -15
  21. logger_36/config/message.py +1 -15
  22. logger_36/config/system.py +1 -15
  23. logger_36/constant/error.py +1 -15
  24. logger_36/constant/generic.py +1 -15
  25. logger_36/constant/html.py +1 -15
  26. logger_36/constant/issue.py +1 -15
  27. logger_36/constant/logger.py +1 -15
  28. logger_36/constant/memory.py +1 -15
  29. logger_36/constant/message.py +1 -15
  30. logger_36/constant/path.py +2 -16
  31. logger_36/constant/record.py +1 -15
  32. logger_36/constant/system.py +1 -15
  33. logger_36/extension/html_.py +1 -15
  34. logger_36/extension/line.py +1 -15
  35. logger_36/instance/logger.py +3 -16
  36. logger_36/instance/loggers.py +1 -15
  37. logger_36/task/format/memory.py +1 -15
  38. logger_36/task/format/message.py +1 -15
  39. logger_36/task/format/rule.py +1 -15
  40. logger_36/task/inspection.py +1 -15
  41. logger_36/task/measure/chronos.py +1 -15
  42. logger_36/task/measure/memory.py +1 -15
  43. logger_36/task/storage.py +1 -15
  44. logger_36/type/handler.py +7 -40
  45. logger_36/type/issue.py +1 -15
  46. logger_36/type/logger.py +26 -67
  47. logger_36/type/loggers.py +2 -17
  48. logger_36/type/message.py +1 -15
  49. logger_36/version.py +2 -16
  50. {logger_36-2025.17.dist-info → logger_36-2025.18.dist-info}/METADATA +2 -2
  51. logger_36-2025.18.dist-info/RECORD +53 -0
  52. logger_36/constant/handler.py +0 -56
  53. logger_36-2025.17.dist-info/RECORD +0 -54
  54. {logger_36-2025.17.dist-info → logger_36-2025.18.dist-info}/WHEEL +0 -0
  55. {logger_36-2025.17.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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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/Inria/UniCA
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,8 +13,6 @@ 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,
@@ -31,10 +29,10 @@ class console_handler_t(base_t):
31
29
 
32
30
  def emit(self, record: l.LogRecord, /) -> None:
33
31
  """"""
34
- message = self.MessageFromRecord(
32
+ output = self.MessageFromRecord(
35
33
  record, RuleAsText, line_width=self.message_width
36
34
  )
37
- s.__stdout__.write(message[0] + "\n")
35
+ s.__stdout__.write(output[0] + "\n")
38
36
 
39
37
 
40
38
  """
@@ -67,18 +65,4 @@ The fact that you are presently reading this means that you have had
67
65
  knowledge of the CeCILL license and that you accept its terms.
68
66
 
69
67
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
70
-
71
- This software is being developed by Eric Debreuve, a CNRS employee and
72
- member of team Morpheme.
73
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
74
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
75
- I3S, and Laboratory iBV.
76
-
77
- CNRS: https://www.cnrs.fr/index.php/en
78
- Inria: https://www.inria.fr/en/
79
- UniCA: https://univ-cotedazur.eu/
80
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
81
- I3S: https://www.i3s.unice.fr/en/
82
- iBV: http://ibv.unice.fr/
83
- Team Morpheme: https://team.inria.fr/morpheme/
84
68
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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,8 +50,6 @@ 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,
@@ -124,13 +122,13 @@ class console_rich_handler_t(base_t):
124
122
  self.console.print(message, crop=False, overflow="ignore")
125
123
  self._log_parity = not self._log_parity
126
124
 
127
- def LogAsIs(self, message: str | renderable_t, /) -> None:
125
+ def EmitAsIs(self, message: str | renderable_t, /) -> None:
128
126
  """"""
129
127
  self.console.print(message, crop=False, overflow="ignore")
130
128
 
131
- def DisplayRule(self, /, *, text: str | None = None, color: str = "black") -> None:
129
+ def EmitRule(self, /, *, text: str | None = None, color: str = "black") -> None:
132
130
  """"""
133
- self.LogAsIs(Rule(text, color))
131
+ self.EmitAsIs(Rule(text, color))
134
132
 
135
133
 
136
134
  def HighlightedVersion(
@@ -191,18 +189,4 @@ The fact that you are presently reading this means that you have had
191
189
  knowledge of the CeCILL license and that you accept its terms.
192
190
 
193
191
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
194
-
195
- This software is being developed by Eric Debreuve, a CNRS employee and
196
- member of team Morpheme.
197
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
198
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
199
- I3S, and Laboratory iBV.
200
-
201
- CNRS: https://www.cnrs.fr/index.php/en
202
- Inria: https://www.inria.fr/en/
203
- UniCA: https://univ-cotedazur.eu/
204
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
205
- I3S: https://www.i3s.unice.fr/en/
206
- iBV: http://ibv.unice.fr/
207
- Team Morpheme: https://team.inria.fr/morpheme/
208
192
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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,8 +13,6 @@ 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,
@@ -32,13 +30,13 @@ class file_handler_t(base_t):
32
30
 
33
31
  def emit(self, record: l.LogRecord, /) -> None:
34
32
  """"""
35
- message = self.MessageFromRecord(
33
+ output = self.MessageFromRecord(
36
34
  record, RuleAsText, line_width=self.message_width
37
35
  )
38
- self.stream.write(message[0] + "\n")
36
+ self.stream.write(output[0] + "\n")
39
37
  self.stream.flush()
40
38
 
41
- def LogAsIs(self, message: str, /) -> None:
39
+ def EmitAsIs(self, message: str, /) -> None:
42
40
  """"""
43
41
  self.stream.write(message + "\n")
44
42
  self.stream.flush()
@@ -74,18 +72,4 @@ The fact that you are presently reading this means that you have had
74
72
  knowledge of the CeCILL license and that you accept its terms.
75
73
 
76
74
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
77
-
78
- This software is being developed by Eric Debreuve, a CNRS employee and
79
- member of team Morpheme.
80
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
81
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
82
- I3S, and Laboratory iBV.
83
-
84
- CNRS: https://www.cnrs.fr/index.php/en
85
- Inria: https://www.inria.fr/en/
86
- UniCA: https://univ-cotedazur.eu/
87
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
88
- I3S: https://www.i3s.unice.fr/en/
89
- iBV: http://ibv.unice.fr/
90
- Team Morpheme: https://team.inria.fr/morpheme/
91
75
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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 DisplayRule_p(h.Protocol):
32
+ class EmitRule_p(h.Protocol):
33
33
  def __call__(self, /, *, text: str | None = None, color: str = "white") -> None: ...
34
34
 
35
35
 
@@ -39,20 +39,8 @@ 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,
@@ -61,17 +49,20 @@ class generic_handler_t(base_t):
61
49
  formatter: l.Formatter | None,
62
50
  kwargs,
63
51
  ) -> None:
64
- """"""
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)
65
57
  alternating_logs = kwargs.pop("alternating_logs", 0)
66
- LogAsIs = kwargs.pop("LogAsIs", lambda _, indented=False: print(_))
67
58
  supports_html = kwargs.pop("supports_html", False)
68
59
 
69
60
  assert alternating_logs in (0, 1, 2)
70
61
 
71
62
  base_t.__init__(self, name, message_width, level, formatter, kwargs)
72
63
 
73
- self.LogAsIs = LogAsIs
74
- self.DisplayRule = None # DisplayRule_p | None.
64
+ if EmitAsIs is not None:
65
+ self.EmitAsIs = EmitAsIs
75
66
  self.console = None # console_t | None.
76
67
  self.console_options = None # console_options_t | None.
77
68
  self.alternating_logs = alternating_logs
@@ -86,9 +77,7 @@ class generic_handler_t(base_t):
86
77
  self.console_options = self.console.options.update(
87
78
  overflow="ignore", no_wrap=True
88
79
  )
89
- self.DisplayRule = self._DisplayRule
90
- else:
91
- self.DisplayRule = self._DisplayRuleAsText
80
+ self.EmitRule = self._EmitRichRule
92
81
 
93
82
  @classmethod
94
83
  def New(
@@ -150,18 +139,14 @@ class generic_handler_t(base_t):
150
139
  "<pre style='margin-bottom:0px'>" + "".join(html_segments) + "</pre>"
151
140
  )
152
141
 
153
- self.LogAsIs(message)
142
+ self.EmitAsIs(message)
154
143
  self._log_parity = not self._log_parity
155
144
 
156
- def _DisplayRuleAsText(
157
- self, /, *, text: str | None = None, color: str = "white"
145
+ def _EmitRichRule(
146
+ self, /, *, text: str | None = None, color: str = "black"
158
147
  ) -> None:
159
148
  """"""
160
- self.LogAsIs(RuleAsText(text, None))
161
-
162
- def _DisplayRule(self, /, *, text: str | None = None, color: str = "white") -> None:
163
- """"""
164
- self.LogAsIs(Rule(text, color))
149
+ self.EmitAsIs(Rule(text, color))
165
150
 
166
151
 
167
152
  """
@@ -194,18 +179,4 @@ The fact that you are presently reading this means that you have had
194
179
  knowledge of the CeCILL license and that you accept its terms.
195
180
 
196
181
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
197
-
198
- This software is being developed by Eric Debreuve, a CNRS employee and
199
- member of team Morpheme.
200
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
201
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
202
- I3S, and Laboratory iBV.
203
-
204
- CNRS: https://www.cnrs.fr/index.php/en
205
- Inria: https://www.inria.fr/en/
206
- UniCA: https://univ-cotedazur.eu/
207
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
208
- I3S: https://www.i3s.unice.fr/en/
209
- iBV: http://ibv.unice.fr/
210
- Team Morpheme: https://team.inria.fr/morpheme/
211
182
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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
  """
@@ -114,18 +114,4 @@ The fact that you are presently reading this means that you have had
114
114
  knowledge of the CeCILL license and that you accept its terms.
115
115
 
116
116
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
117
-
118
- This software is being developed by Eric Debreuve, a CNRS employee and
119
- member of team Morpheme.
120
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
121
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
122
- I3S, and Laboratory iBV.
123
-
124
- CNRS: https://www.cnrs.fr/index.php/en
125
- Inria: https://www.inria.fr/en/
126
- UniCA: https://univ-cotedazur.eu/
127
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
128
- I3S: https://www.i3s.unice.fr/en/
129
- iBV: http://ibv.unice.fr/
130
- Team Morpheme: https://team.inria.fr/morpheme/
131
117
  """
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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
  """
@@ -67,18 +67,4 @@ The fact that you are presently reading this means that you have had
67
67
  knowledge of the CeCILL license and that you accept its terms.
68
68
 
69
69
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
70
-
71
- This software is being developed by Eric Debreuve, a CNRS employee and
72
- member of team Morpheme.
73
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
74
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
75
- I3S, and Laboratory iBV.
76
-
77
- CNRS: https://www.cnrs.fr/index.php/en
78
- Inria: https://www.inria.fr/en/
79
- UniCA: https://univ-cotedazur.eu/
80
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
81
- I3S: https://www.i3s.unice.fr/en/
82
- iBV: http://ibv.unice.fr/
83
- Team Morpheme: https://team.inria.fr/morpheme/
84
70
  """
logger_36/config/issue.py CHANGED
@@ -1,5 +1,5 @@
1
1
  """
2
- Copyright CNRS/Inria/UniCA
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
  """
@@ -39,18 +39,4 @@ The fact that you are presently reading this means that you have had
39
39
  knowledge of the CeCILL license and that you accept its terms.
40
40
 
41
41
  SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
42
-
43
- This software is being developed by Eric Debreuve, a CNRS employee and
44
- member of team Morpheme.
45
- Team Morpheme is a joint team between Inria, CNRS, and UniCA.
46
- It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
47
- I3S, and Laboratory iBV.
48
-
49
- CNRS: https://www.cnrs.fr/index.php/en
50
- Inria: https://www.inria.fr/en/
51
- UniCA: https://univ-cotedazur.eu/
52
- Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
53
- I3S: https://www.i3s.unice.fr/en/
54
- iBV: http://ibv.unice.fr/
55
- Team Morpheme: https://team.inria.fr/morpheme/
56
42
  """