How to have log into a file? #2477
Replies: 4 comments
-
Looking at the decompiled code, is it possible that NETSTANDARD is not defined at all anymore? |
Beta Was this translation helpful? Give feedback.
-
I copied the HostBuilderExtensions.cs file into my project and I commented out the line with NETSTANDARD. The GetLogFilePath will return the filename: "ElementsTechnician, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.log" This might be another bug. |
Beta Was this translation helpful? Give feedback.
-
@ArchieCoder thanks for picking up on this. We've got a few updates coming (eg #2437), so we'll try to get this resolved after that's merged. I'll convert this to an issue in the meantime so we can track it |
Beta Was this translation helpful? Give feedback.
-
Big update!! Closing the issue for now since I unblocked myself today. I will update my code if things change later. Thanks. |
Beta Was this translation helpful? Give feedback.
-
In the default Uno template App.xaml.cs, there is the following line:
.UseSerilog(consoleLoggingEnabled: true, fileLoggingEnabled: true)
The flag fileLoggingEnabled=true does not seem to do anything. Is it a bug or is there a configuration missing?
Beta Was this translation helpful? Give feedback.
All reactions