Skip to content

Commit ff15a0f

Browse files
committed
Renamed...
1 parent 5cd35ed commit ff15a0f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/threadsafe_logger/base_logger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(name)s - %(message)s')
88

9+
910
class BaseBusinessLogger(ABC):
1011
_instances = {}
1112
_lock = threading.Lock()

src/threadsafe_logger/json_business_logger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ def log(self, event_type: str, details: Optional[Dict[str, Any]] = None):
3838
log_data = {'timestamp': timestamp, 'event_type': event_type, 'details': details}
3939
self.backend.write(log_data)
4040

41+
4142
json_business_logger = JsonBusinessLogger()

tests/test_loggers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_singleton_pattern():
3737
"""Vérifie que l'on obtient bien la même instance du logger à chaque fois."""
3838
from threadsafe_logger import sqlite_business_logger as instance1
3939
from threadsafe_logger import sqlite_business_logger as instance2
40+
4041
assert instance1 is instance2
4142

4243

0 commit comments

Comments
 (0)