Skip to content

Commit

Permalink
Remove reference of "faststream.access" from docs (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhc32 authored Dec 17, 2024
1 parent 41a38e6 commit 2ba3eed
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions docs/docs/en/getting-started/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ search:

# Application and Access Logging

**FastStream** uses two already configured loggers:

* `faststream` - used by `FastStream` app
* `faststream.access` - used by the broker

## Logging Requests

To log requests, it is strongly recommended to use the `access_logger` of your broker, as it is available from the [Context](../getting-started/context/existed.md){.internal-link} of your application.
Expand Down Expand Up @@ -77,22 +72,6 @@ from faststream.rabbit import RabbitBroker
broker = RabbitBroker(log_fmt="%(asctime)s %(levelname)s - %(message)s")
```

## Logger Access

If you want to override default logger's behavior, you can access them directly via `logging`.

```python
import logging
logger = logging.getLogger("faststream")
access_logger = logging.getLogger("faststream.access")
```

Or you can import them from **FastStream**.

```python
from faststream.log import access_logger, logger
```

## Using Your Own Loggers

Since **FastStream** works with the standard `logging.Logger` object, you can initiate an application and a broker
Expand Down

0 comments on commit 2ba3eed

Please sign in to comment.