Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Almström 33 posts 158 karma points
    Apr 11, 2016 @ 08:14
    Martin Almström
    0

    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:

    UmbracoTraceLog.webedit01.txt
    UmbracoTraceLog.webfront01.txt
    UmbracoTraceLog.webfront02.txt
    

    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

  • Dan Diplo 1165 posts 4140 karma points mvp
    Apr 11, 2016 @ 19:23
    Dan Diplo
    100

    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:

    UmbracoTraceLog.webedit01.txt.2016-04-11
    UmbracoTraceLog.webfront01.txt.2016-04-11
    UmbracoTraceLog.webfront02.txt.2016-04-11
    

    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.

  • Dan Diplo 1165 posts 4140 karma points mvp
    May 04, 2016 @ 07:33
    Dan Diplo
    1

    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.

  • Mike Chambers 585 posts 1087 karma points c-trib
    Oct 12, 2017 @ 11:07
    Mike Chambers
    0

    Any chance you could extend this to include naming custom log4net appenders?

    custom log4net appender generated log files

    PS I tried changing the appender to change the machinename part of the file, but still ended up with just 2 dates...

    <appender name="SypFile" type="log4net.Appender.RollingFileAppender">
        <file type="log4net.Util.PatternString" value="App_Data\Logs\SYPUmbracoTraceLog.SYPUmbraco.txt" />
    

    Also tried UmbracoTraceLog.SYP-35120L.txt without success.. have v2.4.0 installed latest from the projects section of our.

  • Mike Chambers 585 posts 1087 karma points c-trib
    Oct 12, 2017 @ 11:33
    Mike Chambers
    0

    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

    :-)

  • Dan Diplo 1165 posts 4140 karma points mvp
    Oct 12, 2017 @ 12:35
    Dan Diplo
    0

    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:

    enter image description here

    Are you saying in 2.4.0 you are not seeing that filename if you browse by filenames?

  • Mike Chambers 585 posts 1087 karma points c-trib
    Oct 12, 2017 @ 18:18
    Mike Chambers
    0

    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..

  • Dan Diplo 1165 posts 4140 karma points mvp
    Oct 13, 2017 @ 08:13
    Dan Diplo
    0

    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.

  • Mike Chambers 585 posts 1087 karma points c-trib
    Oct 13, 2017 @ 08:21
    Mike Chambers
    0

    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?

  • Dan Diplo 1165 posts 4140 karma points mvp
    Oct 19, 2017 @ 08:03
    Dan Diplo
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft