private bool IsKnownLifeTimeActionWarning(SinkEntryType entryType, string message)
        {
            // We have lifetime actions that we have no control over that fail to run due to the lack of
            // elevated process, we don't output these warnings to the log as it only confuses investigations.

            if (entryType == SinkEntryType.Warning)
            {
                if (message.Contains("Could not find path to the Apex dependency libraries to install 'Microsoft.Test.Apex.ElevateClient'"))
                {
                    return(true);
                }

                if (message.Contains("CodeMarker Libraries Installation Failure"))
                {
                    return(true);
                }

                if (message.Contains("to 'Microsoft.Internal.Performance.CodeMarkers.dll' to enable CodeMarkers"))
                {
                    return(true);
                }

                if (message.Contains("Unable to locate a file named 'Microsoft.Test.Apex.ElevateClient.exe' within the avaliable probing directories"))
                {
                    return(true);
                }
            }

            return(false);
        }
        public new void WriteEntry(SinkEntryType entryType, string message)
        {
            if (IsKnownLifeTimeActionWarning(entryType, message))
            {
                return;
            }

            WriteEntry(entryType, LogMessageHelpers.EscapeCurlyBraces(message), string.Empty);
        }