Implementing a logging framework that can save the logs into a file

I tried the SeriLog and MetroLog frameworks but it seems that they are not able to write the logs in a file. According to the SeriLog Wiki:

https://github.com/serilog/serilog/wiki/Provided-Sinks

I could use something like that :

var log = new LoggerConfiguration()
.WriteTo.File("log.txt")
.CreateLogger();

or even better a RollingFile but it seems by ios and Android Xamarin Projects that is not an option.

By MetroLog the FileStreamingTarget is available for the Windows Store Apps only.

So is there any way to create file entries using those frameworks? If not is there any logging framework has this functionality?

Answers

Sign In or Register to comment.