scistacklog 0.2.0__tar.gz → 0.2.2__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.5
2
2
  Name: scistacklog
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Shared logging facade for the scistack framework (dual-sink console/file logging with layer tags)
5
5
  Author: SciStack Contributors
6
6
  License-Expression: MIT
@@ -40,7 +40,6 @@ regardless of sink levels.
40
40
 
41
41
  from __future__ import annotations
42
42
 
43
- import json
44
43
  import logging
45
44
  import os
46
45
  import sys
@@ -760,19 +759,6 @@ class Log:
760
759
  cls.info("[journal]\n" + text, layer="scistack")
761
760
  return text
762
761
 
763
- @classmethod
764
- def journal_json(cls, event_json: str) -> str:
765
- """:meth:`journal` for a JSON-encoded event (the MATLAB bridge)."""
766
- try:
767
- event = json.loads(str(event_json))
768
- except ValueError as e:
769
- cls.error(f"[journal] unreadable event from MATLAB: {e}", layer="scistack")
770
- return ""
771
- if not isinstance(event, dict):
772
- cls.error(f"[journal] event is not an object: {str(event_json)[:200]}", layer="scistack")
773
- return ""
774
- return cls.journal(event)
775
-
776
762
  @classmethod
777
763
  def journal_note(cls, text: str, *, key: str | None = None) -> None:
778
764
  """A note about the data for the journal, written once per ``key``
File without changes
File without changes
File without changes