Skip to content

Commit eab691b

Browse files
authored
Refactor logging (#306)
1 parent fd64948 commit eab691b

26 files changed

+803
-57
lines changed

agentlightning/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
from .execution import *
1111
from .litagent import *
1212
from .llm_proxy import *
13-
from .logging import *
13+
from .logging import configure_logger # deprecated # type: ignore
14+
from .logging import setup as setup_logging # type: ignore
15+
from .logging import setup_module as setup_module_logging # type: ignore
1416
from .runner import *
1517
from .server import AgentLightningServer # deprecated # type: ignore
1618
from .store import *

agentlightning/cli/store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import logging
1010
from typing import Iterable
1111

12-
from agentlightning.logging import configure_logger
12+
from agentlightning import setup_logging
1313
from agentlightning.store.client_server import LightningStoreServer
1414
from agentlightning.store.memory import InMemoryLightningStore
1515

@@ -27,7 +27,7 @@ def main(argv: Iterable[str] | None = None) -> int:
2727
)
2828
args = parser.parse_args(list(argv) if argv is not None else None)
2929

30-
configure_logger()
30+
setup_logging()
3131

3232
store = InMemoryLightningStore()
3333
server = LightningStoreServer(

0 commit comments

Comments
 (0)