azpaddypy 0.2.9__py3-none-any.whl → 0.3.1__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.
azpaddypy/mgmt/logging.py CHANGED
@@ -19,6 +19,10 @@ class AzureLogger:
19
19
  tracking, baggage propagation, and automated function tracing for Azure
20
20
  applications with seamless local development support.
21
21
 
22
+ Supports all standard logging levels (debug, info, warning, error, exception,
23
+ critical) with enhanced context including trace IDs, correlation IDs, and
24
+ baggage propagation.
25
+
22
26
  Attributes:
23
27
  service_name: Service identifier for telemetry
24
28
  service_version: Service version for context
@@ -212,6 +216,18 @@ class AzureLogger:
212
216
  """Log error message with enhanced context and exception info."""
213
217
  self.logger.error(message, extra=self._enhance_extra(extra), exc_info=exc_info)
214
218
 
219
+ def exception(self, message: str, extra: Optional[Dict[str, Any]] = None):
220
+ """Log exception message with enhanced context and automatic exception info.
221
+
222
+ This method is a convenience method equivalent to calling error() with
223
+ exc_info=True. It should typically be called only from exception handlers.
224
+
225
+ Args:
226
+ message: Exception message to log
227
+ extra: Additional custom properties
228
+ """
229
+ self.logger.error(message, extra=self._enhance_extra(extra), exc_info=True)
230
+
215
231
  def critical(self, message: str, extra: Optional[Dict[str, Any]] = None):
216
232
  """Log critical message with enhanced context."""
217
233
  self.logger.critical(message, extra=self._enhance_extra(extra))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: azpaddypy
3
- Version: 0.2.9
3
+ Version: 0.3.1
4
4
  Summary: Comprehensive Python logger for Azure, integrating OpenTelemetry for advanced, structured, and distributed tracing.
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Operating System :: OS Independent
@@ -1,10 +1,10 @@
1
1
  azpaddypy/mgmt/__init__.py,sha256=-jH8Ftx9C8qu4yF5dMVEapVZhNwG7m4QCUjyutesOoY,278
2
2
  azpaddypy/mgmt/identity.py,sha256=mA_krQslMsK_sDob-z-QA0B9khK_JUO2way7xwPopR8,12001
3
- azpaddypy/mgmt/logging.py,sha256=War3h9Td7KZyeOsvOz3t2_ESNQzJ3jeZcrFL5octoGo,28081
3
+ azpaddypy/mgmt/logging.py,sha256=5sAqUWwjX6nZMgqK8BurMoWhId4JJ21RZ9H29gXWqA4,28835
4
4
  azpaddypy/test_function/__init__.py,sha256=0NjUl36wvUWV79GpRwBFkgkBaC6uDZsTdaSVOIHMFEU,3481
5
5
  azpaddypy/test_function/function_app.py,sha256=6nX54-iq0L1l_hZpD6E744-j79oLxdaldFyWDCpwH7c,3867
6
- azpaddypy-0.2.9.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
7
- azpaddypy-0.2.9.dist-info/METADATA,sha256=1qA7Y7s8jAjSkxl37SeQW8bCHfucxV8ct_mXcXcdBiE,705
8
- azpaddypy-0.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- azpaddypy-0.2.9.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
10
- azpaddypy-0.2.9.dist-info/RECORD,,
6
+ azpaddypy-0.3.1.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
7
+ azpaddypy-0.3.1.dist-info/METADATA,sha256=YHKh0yHCvmCy_qsJZ7ijehKJ9j3TftY1YAbdM1qGVzs,705
8
+ azpaddypy-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ azpaddypy-0.3.1.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
10
+ azpaddypy-0.3.1.dist-info/RECORD,,