sqldbpool.com
Undocumented Server Property ErrorLogFileName
You can use Server Property errorlogfilename to get the error log file path. SELECT SERVERPROPERTY(‘ErrorLogFileName’)