I'm thinking about using this plugin on my load balanced environment and wonder if it supports multiple logfiles per day?
Three servers will log to the same folder with a log file for each server like:
Is it possible to use your plugin with this setup?
Or is this something you could add support for in the future? Maybe display the server names in the tree?
Then you'll see three entries for 2016-04-11 in the tree. The UI doesn't currently allow you to differentiate between the three files, though when you open a file you can see the server name there. I might look at that for the next release.
Just to let you know the latest release will now show the machine name as well as the date when the machine name of the log file is different to the machine it is being viewed on. Should make it a bit easier to see.
Just seen on the git repo that you have removed the machinename tagging from the latest release... though the umbraco documentation for loadbalanced environments still advises to make that change?
Hi Mike. It was becoming more and more difficult to try and parse the machine name out of the files, as there were all sorts of different formats and people were asking for Courier logs to be supported etc.
But in 2.4.0 there is the ability to browse log files by both date and filename - so you can see things like machine name as part of the filename, as shown below:
Are you saying in 2.4.0 you are not seeing that filename if you browse by filenames?
Hi Dan, as you say seeing the data/filename ones..
but only the filename one is useable once you have several logs going on as the latest date one at the top shows multiple dates the same.. and the date filter one too.. so no way to know what log you are about to open :-(
Maybe you could append the filename (minus the date) to all of the date options to show a distinction? or tooltip? or force a filename format.. chars up to the first . are the log name?
Or is a folder structure in the app_data/logs better than parsing filenames, for being able to separate out distinct logs?
Just thinking out loud here.. It was just a request from a client of mine that the umbraco trace log was just too full of core type logging.. when all they needed to see was the custom logs for 404, 301 and 500 associated to an icontentfinder.
great work on all your packages obv... they are standard in all my releases..
Yeah, I'm going to have think of a way to distinguish them. A tooltip would be ideal, but the Umbraco tree doesn't seem to support this option. I also need to come up with something that works generally across lots of log formats, now.
Could you provide some examples of log file names you have in your logs folder? It can be useful for testing. Thanks.
It will now display the machine name next to the date eg. 2017-11-11 (BF-T440P-W10) if the machine name of the log file differs from the machine of the host viewing the file.
You can also sort and search by machine name in the table view.
Using with load balancing
Hi,
I'm thinking about using this plugin on my load balanced environment and wonder if it supports multiple logfiles per day? Three servers will log to the same folder with a log file for each server like:
Is it possible to use your plugin with this setup? Or is this something you could add support for in the future? Maybe display the server names in the tree?
Regards,
Martin
Hi, yeah it should work in a load-balanced environment in latest version. As you note, each server will append the machine name to the log file.
What you will get, though, is that in the tree view you'll see three dates the same. So say you have:
Then you'll see three entries for 2016-04-11 in the tree. The UI doesn't currently allow you to differentiate between the three files, though when you open a file you can see the server name there. I might look at that for the next release.
Hi,
Just to let you know the latest release will now show the machine name as well as the date when the machine name of the log file is different to the machine it is being viewed on. Should make it a bit easier to see.
Any chance you could extend this to include naming custom log4net appenders?
PS I tried changing the appender to change the machinename part of the file, but still ended up with just 2 dates...
Also tried UmbracoTraceLog.SYP-35120L.txt without success.. have v2.4.0 installed latest from the projects section of our.
Just seen on the git repo that you have removed the machinename tagging from the latest release... though the umbraco documentation for loadbalanced environments still advises to make that change?
https://our.umbraco.org/documentation/getting-started/setup/server-setup/load-balancing/logging
:-)
Hi Mike. It was becoming more and more difficult to try and parse the machine name out of the files, as there were all sorts of different formats and people were asking for Courier logs to be supported etc.
But in 2.4.0 there is the ability to browse log files by both date and filename - so you can see things like machine name as part of the filename, as shown below:
Are you saying in 2.4.0 you are not seeing that filename if you browse by filenames?
Hi Dan, as you say seeing the data/filename ones..
but only the filename one is useable once you have several logs going on as the latest date one at the top shows multiple dates the same.. and the date filter one too.. so no way to know what log you are about to open :-(
Maybe you could append the filename (minus the date) to all of the date options to show a distinction? or tooltip? or force a filename format.. chars up to the first . are the log name?
Or is a folder structure in the app_data/logs better than parsing filenames, for being able to separate out distinct logs?
Just thinking out loud here.. It was just a request from a client of mine that the umbraco trace log was just too full of core type logging.. when all they needed to see was the custom logs for 404, 301 and 500 associated to an icontentfinder.
great work on all your packages obv... they are standard in all my releases..
Hi Mike,
Yeah, I'm going to have think of a way to distinguish them. A tooltip would be ideal, but the Umbraco tree doesn't seem to support this option. I also need to come up with something that works generally across lots of log formats, now.
Could you provide some examples of log file names you have in your logs folder? It can be useful for testing. Thanks.
The extra log files I have are simply based on the standard umbraco naming
simply chanfging the "UmbracoTraceLog"
eg SYP404TraceLog...... SYP505TraceLog...... SYP301TraceLog....
nothing extraordinary
If we had a folder structure, could an icon be placed in there and picked up and used as the tree icon?
OK, I've released a new version that somewhat addresses these requests: https://our.umbraco.org/projects/developer-tools/diplo-trace-log-viewer/
It will now display the machine name next to the date eg.
2017-11-11 (BF-T440P-W10)
if the machine name of the log file differs from the machine of the host viewing the file.You can also sort and search by machine name in the table view.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.