Skip to content

Running FastMCP() overwrites global logging configuration #909

Closed as duplicate of#420
@mithaler

Description

@mithaler

Describe the bug
Running FastMCP() calls configure_logging, which overwrites the global logging config. This makes it difficult to integrate it into other frameworks built on FastAPI via mounting, especially in complex apps that need to set up their logs in a specific way.

To Reproduce
Follow the example mounting a FastMCP instance in an existing FastAPI server on the top-level README, in an app with any kind of existing logging config.

Expected behavior
FastMCP should not do this, or at the very least it should make it possible to disable or overwrite this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions