miu-logger 0.1.3__tar.gz → 0.1.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: miu-logger
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Multiprocessing-safe domain-based logging framework with QueueListener architecture
5
5
  Author-email: Bruno Miura <brumiura@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "miu-logger"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "Multiprocessing-safe domain-based logging framework with QueueListener architecture"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -73,4 +73,10 @@ class LoggingRepository:
73
73
  return {"config": self.config, "queue": self.queue}
74
74
 
75
75
  def __setstate__(self, state):
76
- self.__init__(state["config"], use_listener=False, queue=state["queue"])
76
+ self._is_shutdown = False
77
+ self.config = state["config"]
78
+ self.queue = state["queue"]
79
+ self.listener = None
80
+ self._domains = set(self.config.domains)
81
+ self._loggers = {}
82
+ atexit.register(self.shutdown)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: miu-logger
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Multiprocessing-safe domain-based logging framework with QueueListener architecture
5
5
  Author-email: Bruno Miura <brumiura@gmail.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes