Skip to content

Potential Xamarin Issue #44

@CostaTC

Description

@CostaTC

Hi there,

Found an odd issue when running the following code in Xamarin:

Log.Logger = new LoggerConfiguration() .WriteTo.File(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "XamarinLib-{Date}.txt") , outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}", fileSizeLimitBytes: 100000000, rollingInterval: RollingInterval.Day, rollOnFileSizeLimit: true, shared: true, retainedFileCountLimit: 31, encoding: Encoding.UTF8) .WriteTo.AndroidLog() .CreateLogger();

When the parameter "shared" is set to true, no file is created. When set to false it correctly creates the file. I'm not sure if this is a bug or if I'm misunderstanding how the shared property works :)

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