Esempio n. 1
0
        /// <summary>
        /// Checks if a meesage is in a file
        /// </summary>
        /// <param name="logFileName">The full path to the log file</param>
        /// <param name="message">Search expression (regex)</param>
        /// <returns>True if the message was found, false otherwise</returns>
        public static bool MessageInLogFileRegex(string logFileName, string regexMessage)
        {
            LogVerifier logVerifier = new LogVerifier(logFileName);

            return(logVerifier.EntireFileAtOnce(regexMessage) > 0);
        }
Esempio n. 2
0
        /// <summary>
        /// Checks if a meesage is in a file
        /// </summary>
        /// <param name="logFileName">The full path to the log file</param>
        /// <param name="message">Search expression</param>
        /// <returns>True if the message was found, false otherwise</returns>
        public static bool MessageInLogFile(string logFileName, string message)
        {
            LogVerifier logVerifier = new LogVerifier(logFileName);

            return(logVerifier.EntireFileAtOncestr(message));
        }