LoggerManager.Add method

Add or replace a logger by name and optionally set it as the default logger.

public static ILogger Add(string name, Action<LoggerConfiguration>? config = null, 
    bool setAsDefault = false)

See Also