logly 0.2.0__cp315-cp315-win32.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 (56) hide show
  1. logly/__init__.py +85 -0
  2. logly/_logly.cp315-win32.pyd +0 -0
  3. logly/_logly.pyi +1277 -0
  4. logly/exceptions.py +73 -0
  5. logly/integrations/__init__.py +115 -0
  6. logly/integrations/_utils.py +19 -0
  7. logly/integrations/apscheduler.py +127 -0
  8. logly/integrations/aws_cloudwatch.py +226 -0
  9. logly/integrations/azure_monitor.py +170 -0
  10. logly/integrations/celery.py +100 -0
  11. logly/integrations/click.py +79 -0
  12. logly/integrations/datadog.py +184 -0
  13. logly/integrations/discord.py +90 -0
  14. logly/integrations/django.py +203 -0
  15. logly/integrations/elasticsearch.py +136 -0
  16. logly/integrations/email.py +129 -0
  17. logly/integrations/fastapi.py +112 -0
  18. logly/integrations/flask.py +175 -0
  19. logly/integrations/google_cloud_logging.py +159 -0
  20. logly/integrations/graylog.py +243 -0
  21. logly/integrations/gunicorn.py +148 -0
  22. logly/integrations/http.py +92 -0
  23. logly/integrations/kafka.py +119 -0
  24. logly/integrations/logstash.py +202 -0
  25. logly/integrations/loki.py +106 -0
  26. logly/integrations/mongodb.py +106 -0
  27. logly/integrations/newrelic.py +144 -0
  28. logly/integrations/opentelemetry.py +139 -0
  29. logly/integrations/postgresql.py +125 -0
  30. logly/integrations/prometheus.py +137 -0
  31. logly/integrations/propagate.py +88 -0
  32. logly/integrations/pydantic.py +138 -0
  33. logly/integrations/rabbitmq.py +152 -0
  34. logly/integrations/redis.py +123 -0
  35. logly/integrations/rich.py +137 -0
  36. logly/integrations/rq.py +123 -0
  37. logly/integrations/sentry.py +159 -0
  38. logly/integrations/seq.py +182 -0
  39. logly/integrations/slack.py +99 -0
  40. logly/integrations/sqlalchemy.py +168 -0
  41. logly/integrations/starlette.py +96 -0
  42. logly/integrations/stdlib.py +99 -0
  43. logly/integrations/structlog.py +159 -0
  44. logly/integrations/telemetry.py +126 -0
  45. logly/integrations/tqdm.py +101 -0
  46. logly/integrations/typer.py +81 -0
  47. logly/integrations/uvicorn.py +164 -0
  48. logly/logger.py +1279 -0
  49. logly/models.py +205 -0
  50. logly/py.typed +0 -0
  51. logly/typing.py +41 -0
  52. logly-0.2.0.dist-info/METADATA +605 -0
  53. logly-0.2.0.dist-info/RECORD +56 -0
  54. logly-0.2.0.dist-info/WHEEL +4 -0
  55. logly-0.2.0.dist-info/licenses/LICENSE +21 -0
  56. logly-0.2.0.dist-info/sboms/logly.cyclonedx.json +4428 -0
logly/__init__.py ADDED
@@ -0,0 +1,85 @@
1
+ """Logly - A high-performance Rust-powered logging library for Python.
2
+
3
+ Logly provides a clean, intuitive API with 10 built-in log levels,
4
+ multiple sink types, context binding, structured logging,
5
+ and integrations for FastAPI, Django, stdlib logging, and Rich.
6
+
7
+ Usage::
8
+
9
+ from logly import logger
10
+
11
+ logger.info("Hello from Logly")
12
+ logger.opt(exception=True).error("Something went wrong")
13
+
14
+ Attributes:
15
+ logger: The default module-level Logger instance.
16
+ Logger: The Logger class for creating custom instances.
17
+ PrettyJsonConfig: Configuration model for pretty-printed JSON output.
18
+ __version__: The current version of the logly package.
19
+ """
20
+
21
+ from __future__ import annotations
22
+
23
+ from logly._logly import (
24
+ HttpJsonSink,
25
+ SyslogSink,
26
+ TcpSink,
27
+ UdpSink,
28
+ __version__,
29
+ colorize,
30
+ format_exception_text,
31
+ inspect_level,
32
+ list_levels,
33
+ paint_themed,
34
+ parse_compression_str,
35
+ parse_retention_str,
36
+ parse_rotation_str,
37
+ register_custom_level,
38
+ render_message,
39
+ resolve_level_name,
40
+ strip_rich_tags,
41
+ unsupported,
42
+ )
43
+ from logly.exceptions import (
44
+ CompressionError,
45
+ ConfigError,
46
+ FilterError,
47
+ FormatterError,
48
+ LoglyError,
49
+ RotationError,
50
+ SinkError,
51
+ )
52
+ from logly.logger import Level, Logger, logger
53
+ from logly.models import PrettyJsonConfig
54
+
55
+ __all__ = [
56
+ "CompressionError",
57
+ "ConfigError",
58
+ "FilterError",
59
+ "FormatterError",
60
+ "HttpJsonSink",
61
+ "Level",
62
+ "Logger",
63
+ "LoglyError",
64
+ "PrettyJsonConfig",
65
+ "RotationError",
66
+ "SinkError",
67
+ "SyslogSink",
68
+ "TcpSink",
69
+ "UdpSink",
70
+ "__version__",
71
+ "colorize",
72
+ "format_exception_text",
73
+ "inspect_level",
74
+ "list_levels",
75
+ "logger",
76
+ "paint_themed",
77
+ "parse_compression_str",
78
+ "parse_retention_str",
79
+ "parse_rotation_str",
80
+ "register_custom_level",
81
+ "render_message",
82
+ "resolve_level_name",
83
+ "strip_rich_tags",
84
+ "unsupported",
85
+ ]
Binary file