Skip to content

MinimumLevel setting is ignored while submitting the logs to dashboard #260

Closed
@jbulowski

Description

@jbulowski

Hello,

first of all i would like to apologize that I'm posting this issue here,
but the serilog exceptionless extension project doesn't include the issues page.

I'm initializing logger with serilog like following

Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Verbose()
                .WriteTo.Exceptionless(exceptionlessKey, exceptionlessUrl)
                .WriteTo.File(@"c:\logs\temp_logs.txt")
                .CreateLogger();

and while all the logs appear in the log file, I don't get logs below the Warning level in my dashboard.

I am using a self hosted version of excetionless and found the line that couses this

https://github.com/serilog/serilog-sinks-exceptionless/blob/master/src/Serilog.Sinks.Exceptionless/Sinks/Exceptionless/ExceptionlessClientExtensions.cs#L33

On this line the Constants.SourceContextPropertyName isn't getting found and because of it, it defaults to Warning and bypasses the inital setting (in Exceptionless.Models.SettingsDictionary.GetMinLogLevel()).

How do I fix it?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions