That was pretty neat. Thanks! Can you do a follow up video on how to setup the app in a way that if app crashes they get this little dialog saying 'Send crash details to developer?' and retrieve those logs?
Thank you for your work Gerald, I really appreciate these videos...just one question.. how do you cast your real phone to the windows screen like you do on the video?... I'm curious about that, would be very useful sometimes
I can't find the issue you mention at 05:00 (and the bug is still here) on dotnet/maui, is it reported on an other repository ? Could you link me that issue if you remember where it is ?
@@jfversluis Well I met the same issue without using the plugin so as the discussion in the issue you linked says, it's more on Microsoft's end. It may not be a bug but it would be convenient if you could use both ILogger or ILogger. Anyways, I will just use ILogger, thanks for your quick answer :)
Just been playing with this over today and having an issue with no error logging going to the console just failing silently and continues. I can get the exceptions by wrapping everything in a try catch, but this isn't a solution. Any thoughts!?
Hard to say without seeing any code. If you think there is an issue somewhere, make a small reproduction project and report it on the plugin repository
Hi, great video! Do you think it would be possible to use this and save two seperate files of different logging levels? Example: One logfile only checks for Errors, whilst another logfile is saved which saves everything from warning to critical?
@@jfversluis Okay, I'm kinda new to C# and want to have logging on 2 different .xaml.cs files. How do I set it up to get the logging on both of these classes? Right now one is a mainPage and with a button click I redirect to another page. Issue with dependency injection is i need to have a logger as a constructor argument. Anyway around that?
Hi Gerald, I have a question. Could you make a viedo about AutofillIn for Andorid in Xamarin. I read articles about it but I couldn't figure out. I tried to get an answer on Stackoverflow but nobody could help me. I would really preshiate it.
@@jfversluis That's a Tool which is often used for passwords or adresses. Maybe you knoe it from Google when you can just select a box and it autofills all asked fields. It also saves passwords when you write them down.
Hi, Great video! Actually this isn´t working at least on my x-cover 5 device. I downloaded your sample repo and when I shake the phone: System.InvalidOperationException: 'Current Root View cannot be null'. If someonae is having the same issue we can share the answer here (if we can solve. At this moment no luck). Thank you all!
What? Video already over?! No worries, binge more .NET MAUI content right here ✨ruclips.net/video/o5X5yXdWpuc/видео.html
That was pretty neat. Thanks!
Can you do a follow up video on how to setup the app in a way that if app crashes they get this little dialog saying 'Send crash details to developer?' and retrieve those logs?
I would like to see whether there has been an improvement for connecting Pages to the ILogger, since this video was made.
Good work mr Gerald.
Thanks so much!
Thank you for your work Gerald, I really appreciate these videos...just one question.. how do you cast your real phone to the windows screen like you do on the video?... I'm curious about that, would be very useful sometimes
How To Mirror Your Phone to Desktop? 🖥️
excellent content, thanks
Much appreciated!
Another way of using the library ruclips.net/video/8CPXDHQlBa0/видео.html
Thanks for sharing!
Great video. What if you don't want to do dependency injection? How do you create an instance of ILogger in the class more dynamically?
Create your own static field or class that you want to use. To be honest, I think you should be using dependency injection though!
is there any options to filter the logs, is it possible, if we only want to see the logs which we print?
How would you get at that log externally ?
I guess you can create a sink to call an external service or hook into the events and files there to send those back to a server
Thanks for sharing this
You’re very welcome Uzair!
Thank you for this cool content ,, I can improve app performance using this plugin right ?
You could use it to identify places where you could improve your performance. This plugin will only just help you with the logging :)
@@jfversluis that's awesome
Where is the place where it captures the shake event. how does the app know log should be generated on shake?
it only works on phone and not emulator
There is a setting for it. More information here: www.sharpnado.com/metrolog-maui/
I can't find the issue you mention at 05:00 (and the bug is still here) on dotnet/maui, is it reported on an other repository ? Could you link me that issue if you remember where it is ?
It’s not a big in .NET MAUI but this plugin: github.com/roubachof/MetroLog/issues/2
Also it doesn’t seem to be a bug :)
@@jfversluis Well I met the same issue without using the plugin so as the discussion in the issue you linked says, it's more on Microsoft's end.
It may not be a bug but it would be convenient if you could use both ILogger or ILogger. Anyways, I will just use ILogger, thanks for your quick answer :)
Чувак, Ты супер 👍👍👍
Just been playing with this over today and having an issue with no error logging going to the console just failing silently and continues. I can get the exceptions by wrapping everything in a try catch, but this isn't a solution. Any thoughts!?
Hard to say without seeing any code. If you think there is an issue somewhere, make a small reproduction project and report it on the plugin repository
@@jfversluis Thanks for the reply. This issue is OOTB, a few examples:
builder.Services.AddTransient();
// builder.Services.AddTransient();
Hi, great video! Do you think it would be possible to use this and save two seperate files of different logging levels? Example: One logfile only checks for Errors, whilst another logfile is saved which saves everything from warning to critical?
I think that should definitely be possible!
@@jfversluis Okay, I'm kinda new to C# and want to have logging on 2 different .xaml.cs files. How do I set it up to get the logging on both of these classes? Right now one is a mainPage and with a button click I redirect to another page. Issue with dependency injection is i need to have a logger as a constructor argument. Anyway around that?
Do you know if it is possible to send logs to a server. For example Grafana?
Sure, if you setup a custom sink I suppose you could do that!
@@jfversluis Thank you for your input. I will experiment later this week to find out 👍
@@PatrikVesterberg let me know how it goes!
Does App Center or Datadog supports MAUI logging?
App Center is working on support!
thanks!
You’re welcome!
Hi Gerald,
I have a question. Could you make a viedo about AutofillIn for Andorid in Xamarin. I read articles about it but I couldn't figure out. I tried to get an answer on Stackoverflow but nobody could help me. I would really preshiate it.
I’m not sure what “auto fill in” is :)
@@jfversluis That's a Tool which is often used for passwords or adresses. Maybe you knoe it from Google when you can just select a box and it autofills all asked fields. It also saves passwords when you write them down.
@@tobination979 Hm interesting that it doesn’t just work out of the box
Hi, Great video! Actually this isn´t working at least on my x-cover 5 device. I downloaded your sample repo and when I shake the phone: System.InvalidOperationException: 'Current Root View cannot be null'. If someonae is having the same issue we can share the answer here (if we can solve. At this moment no luck). Thank you all!
Interesting! Make sure to check the issues on the plugin repo and maybe report it there too
@@jfversluis Solved! Just update VS to 17.4 preview. Thanks!
@@VicEstampida Perfect, thanks for letting me know!
serilog may more suitable for .NET app
I don’t think it’s made compatible for .NET MAUI :)