prismalog 0.1.2__py3-none-any.whl → 0.1.3__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.
- prismalog/config.py +10 -1
- {prismalog-0.1.2.dist-info → prismalog-0.1.3.dist-info}/METADATA +1 -1
- prismalog-0.1.3.dist-info/RECORD +10 -0
- {prismalog-0.1.2.dist-info → prismalog-0.1.3.dist-info}/WHEEL +1 -1
- prismalog-0.1.2.dist-info/RECORD +0 -10
- {prismalog-0.1.2.dist-info → prismalog-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {prismalog-0.1.2.dist-info → prismalog-0.1.3.dist-info}/top_level.txt +0 -0
prismalog/config.py
CHANGED
@@ -132,7 +132,7 @@ class LoggingConfig:
|
|
132
132
|
}
|
133
133
|
|
134
134
|
_instance = None
|
135
|
-
_config: Dict[str, Any] = {}
|
135
|
+
_config: Dict[str, Any] = {}
|
136
136
|
_initialized = False
|
137
137
|
_debug_mode = False
|
138
138
|
|
@@ -162,6 +162,7 @@ class LoggingConfig:
|
|
162
162
|
The configuration is loaded in two phases:
|
163
163
|
1. Collection Phase: Gather and convert configurations from all sources
|
164
164
|
2. Application Phase: Apply configurations in priority order
|
165
|
+
3. Finalization Phase: Set the initialized flag
|
165
166
|
|
166
167
|
Args:
|
167
168
|
config_file: Path to configuration file (YAML)
|
@@ -187,6 +188,9 @@ class LoggingConfig:
|
|
187
188
|
# Phase 2: Apply configurations in priority order
|
188
189
|
cls._apply_configurations(config_sources)
|
189
190
|
|
191
|
+
# Phase 3: Set initialized flag
|
192
|
+
cls._initialized = True
|
193
|
+
|
190
194
|
return cls._config
|
191
195
|
|
192
196
|
@classmethod
|
@@ -792,6 +796,11 @@ class LoggingConfig:
|
|
792
796
|
"CRITICAL": logging.CRITICAL,
|
793
797
|
}.get(level, logging.INFO)
|
794
798
|
|
799
|
+
@classmethod
|
800
|
+
def is_initialized(cls) -> bool:
|
801
|
+
"""Check if logging configuration has been initialized."""
|
802
|
+
return cls._initialized
|
803
|
+
|
795
804
|
@classmethod
|
796
805
|
def reset(cls) -> Type["LoggingConfig"]:
|
797
806
|
"""
|
@@ -0,0 +1,10 @@
|
|
1
|
+
prismalog/__init__.py,sha256=Hr3ZNOGJLb8YvDTxViYuNUOKTlKridjFVmubnoCk1c4,998
|
2
|
+
prismalog/argparser.py,sha256=p5sXHKyACYA2JBLoxT4pcfNvI_R5exUgyx6x9d6RYqw,7648
|
3
|
+
prismalog/config.py,sha256=U-vBxQNRdlJaLxD8Z1ww4JJzzn_U2m7Q9X5DvzEYzow,32284
|
4
|
+
prismalog/log.py,sha256=hdl2syPBXO7zZYltcFlXJQlcdxY7YkBgZ2OdoNHOspE,35546
|
5
|
+
prismalog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
prismalog-0.1.3.dist-info/licenses/LICENSE,sha256=A1PgraGM1LCUsPVtfZk1lOVRM1TrxvGqfleCPm0hKKk,1071
|
7
|
+
prismalog-0.1.3.dist-info/METADATA,sha256=n0PoC4ScKqw7h4rByx_3uq7o9nNadOghWAwXNvTKY_E,7725
|
8
|
+
prismalog-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
prismalog-0.1.3.dist-info/top_level.txt,sha256=k65xN7XJxN3Z3UOJTQpDUkQnmRDv763tkgVneLrEesU,10
|
10
|
+
prismalog-0.1.3.dist-info/RECORD,,
|
prismalog-0.1.2.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
prismalog/__init__.py,sha256=Hr3ZNOGJLb8YvDTxViYuNUOKTlKridjFVmubnoCk1c4,998
|
2
|
-
prismalog/argparser.py,sha256=p5sXHKyACYA2JBLoxT4pcfNvI_R5exUgyx6x9d6RYqw,7648
|
3
|
-
prismalog/config.py,sha256=3pUeLoQgZitIa_5h0CP-By7CZrkvHZvw4r5wpUfaSz8,32024
|
4
|
-
prismalog/log.py,sha256=hdl2syPBXO7zZYltcFlXJQlcdxY7YkBgZ2OdoNHOspE,35546
|
5
|
-
prismalog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
prismalog-0.1.2.dist-info/licenses/LICENSE,sha256=A1PgraGM1LCUsPVtfZk1lOVRM1TrxvGqfleCPm0hKKk,1071
|
7
|
-
prismalog-0.1.2.dist-info/METADATA,sha256=tRjXK_LgTKeCsyeCWxNsqxd7zJCTnlp7boYJ6oqAEWM,7725
|
8
|
-
prismalog-0.1.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
9
|
-
prismalog-0.1.2.dist-info/top_level.txt,sha256=k65xN7XJxN3Z3UOJTQpDUkQnmRDv763tkgVneLrEesU,10
|
10
|
-
prismalog-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|