serilog / serilog-sinks-xamarin

A Serilog sink that writes events to Xamarin mobile targets
Apache License 2.0
55 stars 18 forks source link

Setting Tag for Android #7

Closed jtbiehl closed 7 years ago

jtbiehl commented 7 years ago

It's not obvious how to set the Tag field for the android logcat. Could you perhaps add example code to demonstrator how to set this?

ghuntley commented 7 years ago

PR's to README.md welcome 👍

crozone commented 2 years ago

.WriteTo.AndroidLog().Enrich.WithProperty(Serilog.Core.Constants.SourceContextPropertyName, "MyAppName") doesn't appear to set the tag - it still comes out as the full namespace + class name. Is there something I'm missing?