We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950c060 commit d3bb483Copy full SHA for d3bb483
feature_gate/adapters/memory.py
@@ -12,6 +12,9 @@ class MemoryAdapter:
12
def __init__(self):
13
self._features = []
14
bind_contextvars(klass="MemoryAdapter")
15
+ log_path = Path("logs").joinpath("feature_gate").with_suffix(".log")
16
+ Path.mkdir(Path("logs"), exist_ok=True)
17
+ Path.touch(log_path)
18
structlog.configure(
19
processors=[
20
merge_contextvars,
@@ -21,7 +24,7 @@ def __init__(self):
21
24
structlog.processors.JSONRenderer(),
22
25
],
23
26
logger_factory=structlog.WriteLoggerFactory(
- file=Path("logs").joinpath("development").with_suffix(".log").open("wt")
27
+ file=log_path.open("wt")
28
),
29
)
30
self._logger = structlog.get_logger()
0 commit comments