Logging configuration and overrides #13356
Replies: 4 comments 2 replies
-
Hi @enkelmedia Seems like you are right, the configuration is not really extendible, which it should be. To me, it just looks like something that should be fixed. Maybe even as an up-for-grabs, if you are interested in taking a look :) What's important is that the new logging dir is used by both the logger and the log viewer. |
Beta Was this translation helpful? Give feedback.
-
This is now implemented in #13485 🚀 |
Beta Was this translation helpful? Give feedback.
-
Does this also include the option to disable the UmbracoFile logging or replace it with a custom sink? |
Beta Was this translation helpful? Give feedback.
-
You can't disable the UmbracoFile, but you can limit what is logged to only Fatal events. Adding custom sinks have been possible all the time. This is what happens when in Development, where a custom console sink is added. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
When we're releasing using Octopus deploy each release gets a new folder with the version number eg.
Site/1.0.0 Site/1.1.1
We want to keep all log-files in one single place so my objective is to configure a different folder to store logs and for the Log Viewer to read logs.
I've noticed that there is an interface
ILoggingConfiguration
that is used eg. by the LogViewer but the path where to write the files is hardcoded inUmbraco.Web.Common.Extensions.ServiceCollectionExtensions
. Maybe I'm not understanding everything correctly and I also think that the documentation lacks information about how I would do this.Basically, it would be pretty simple if
ILoggingConfiguration
could also be used to define where the log files should be created/written.I'm I missing something here? Maybe there is a way to do this but I haven't managed to find it in the docs or the source.
I've look at these docs:
https://our.umbraco.com/documentation/Umbraco-Cloud/Troubleshooting/Log-files/
https://our.umbraco.com/Documentation/Fundamentals/Code/Debugging/Logging/
https://our.umbraco.com/Documentation/Reference/Configuration/Serilog/
And Yes, I guess I could be using a custom sink or something but I just want a simple way to configure another directory to use.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions