1.12.0 Redirected log path: some files created in standard path (1 Viewer)

HTPCSourcer

MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    Thanks:) - but I have no VS2013/2015 installed and also never worked on such projects. :barefoot:

    Anybody out there who could compile the two entries in TSReader.cpp and dshowhelper.cpp to point to the generic path definied in mediaportaldirs.xml instead?
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    Anybody out there who could compile the two entries in TSReader.cpp and dshowhelper.cpp to point to the generic path definied in mediaportaldirs.xml instead?
    If only it was that simple... ;) (remember the filters are written in C++ and the main part of MP is written in C# and uses the .NET framework libraries. So you can't just simply port across the XML file parsing code from the C# world).
     

    HTPCSourcer

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    Never mind. If it doesn't work easily, then so be it.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    Hello,

    I have changed the standard path for logs (and databases, etc.) to point to my central server. All logs are now created there, except

    evr.log
    TsReader.log


    which are still stored in the standard path C:\ProgramData\Team MediaPortal\MediaPortal\log.

    @Owlsroost , I trust that you know your code better than anybody else ;).

    Regards,
    HTPCSourcer
    What other C++ log are ok ? Maybe we can take the code from there ? But still it's surely not easy (i mean) surely a lot of change because we need to parse the info from C# side to C++ etc. lol but doable with time lol
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    All of the filters are C++ (they basically have to be because of DirectShow).

    The main client filters are TsReader, DVBSub3, MPAudioRenderer, BDReader, Core-CC-Parser - AFAIK these all have a hard-wired log path.

    These are also used by MP2 and can be used 'standalone' by other apps - that is why the log path situation isn't just an 'MP1' thing...
     

    HTPCSourcer

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    What other C++ log are ok ? Maybe we can take the code from there ?
    As I said in my first post: all logs except evr and tsreader (and restart.vbs) are logged in the log path that is defined in the mediaportaldirs.xml. So I trust that you could pick any source that is writing a log as an example.[DOUBLEPOST=1440266175][/DOUBLEPOST]
    The main client filters are TsReader, DVBSub3, MPAudioRenderer, BDReader, Core-CC-Parser - AFAIK these all have a hard-wired log path.
    Ah, I am not using MPAR and BD. I also don't know what Core-CC Parser is and if it does anything in my own Environment.
     

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,540
    5,038
    Cambridge
    United Kingdom United Kingdom
    Country flag
    Ah, I am not using MPAR and BD. I also don't know what Core-CC Parser is and if it does anything in my own Environment.
    I've just checked the code for all the filters I listed above - they all have the same hard-wired log path.

    The TV server filters e.g. TsWriter also have a hard-wired log path, it's just a different one.

    I know it's frustrating for you, but as I have said before you can 'fix' the problem right now by using symbolic links in Windows (to re-direct the log folder) without needing to change any code at all if you want to....
     

    HTPCSourcer

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    I've just checked the code for all the filters I listed above - they all have the same hard-wired log path.
    Which makes sense in terms that they probably all come from the same source and therefore have the same legacy :)

    The TV server filters e.g. TsWriter also have a hard-wired log path, it's just a different one.
    Much less of a nuisance since the server side is running on the server, where the redirected log path is pointing too.

    I know it's frustrating for you
    Nah, I am pretty resiliant :D

    you can 'fix' the problem right now by using symbolic links in Windows (to re-direct the log folder)
    In fact it is more a question of personal comfort when collecting logs for uploading to a support thread, which now risk to miss some content. I am not sure what exactly you mean by symbolic links. Can you give me an example please?

    I will amend the Wiki entry about the centralized path (mediaportaldirts.xml) and add some more information about the hardcoded logging of the above-mentioned files,
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    horned_reaper Errors in FH log ... Fanart Handler 1
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    horned_reaper MediaPortal configuration error log message General Support 1
    horned_reaper MiniDisplayStatus error log messages General Support 7
    horned_reaper [solved] GUITextureManager Load2 log error messages Fanart Handler 1
    horned_reaper MediaPortal.LastFM.LastFMException error log message General Support 1
    doskabouter Exceptions found due to improved logging General Support 11
    ajs Can't log in to MyGet Online Facilities 4
    HTPCSourcer Media Accessor is flooding logs with files from attached monitor MediaPortal 2 9
    F Audio render and font error in my logs General Support 2
    HTPCSourcer [fixed] [MP2-815] User not logged in when resuming from standby MediaPortal 2 17
    T No TV after updating Windows 10 to latest Version 1903 / OS build 18362.175 (logs attached) General Support 2
    T [solved] "Unable To Play" (Videos) rears it's head again. Logs not possible... WatchDog error attached!! :( General Support 1
    T Get this error message on attempted re-install...LOGS inc. General Support 4
    HTPCSourcer [solved] Can't log in to Wiki Online Facilities 3
    N [Question] How come when I build WIP_2.2.1 the logged version number is 2.1.1711.10774? MediaPortal 2 1
    J Trying out MP 1 again, have some questions and a few log files Newcomers Forum 5
    Terra [Rejected] Log Media Anonymization/Masking Feature Requests 4
    T Mp 1.20 won't play .265 hdr capable file......settings problem? logs inc. Watch / Listen Media 0
    CyberSimian Inappropriate error messages in the log file MediaPortal 1 0
    S MP restarts after 10-30 sec - how to read error logs General Support 1
    T Moving Pictures error after update to 1.19 Final...logs included! Watch / Listen Media 6
    J Use IP address of NAS in network path for Recorded TV General Support 8
    V [solved] Startup Crash if Video Folders not online/accessible. (default videos plugin) General Support 10
    Similar threads
























    Top Bottom