I need to access ULS log path location from central administration through programmatically.
I used below code for get folder of logs and able to read all the logs text files.
string logfolder = SPUtility.GetGenericSetupPath("LOGS");
Above code is worked, I just changed Trace Log location to "C:\Logs" from Central Administration > Monitoring > Configure diagnostic logging.
Seem like all new ULS Logs append into
C:\Logs new location so I would like to read this value from Central administration through Code Because GenericSetupPath always give us to
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.
Please guild me if any suitable solution it would be big helpful to me.