Skip to content

Add overload to UseSerilog that extends IServiceCollection. #68

@AraHaan

Description

@AraHaan

The host builder is great, until you have a usecase for using a ServiceCollection in place of the hosting package stuff.

Or at least a special library that provides an UseSerilog that extends IServiceCollection. I have a use case for this because I need to debug my application to find out where the issue is where it consumes most of my VPS's RAM (the VPS is ubuntu with 2 GB of RAM) (which oddly is not reproducible on my pc). The way I will debug this is to instead keep the database part (which will require serilog to log the things it logs) while creating and populating the service collection will be done in python (using pythonnet) and discord.py (so I can rule out Remora.Discord or efcore as the RAM hoggers).

I probably could use the generic host, however I would need to figure out if I could then map python objects to .NET objects (as in from python only objects to .NET ones).

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