Skip to content

feat(logs-analyse): 支持多行关键词 #382

Description

@DuckDuckStudio

例如

Checking if C:\Program Files\CatAI\catai_beta.exe executable file can be started.
Exception during executable launch operation System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'C:\Program Files\CatAI\catai_beta.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.)
 ---> System.ComponentModel.Win32Exception (216): An error occurred trying to start process 'C:\Program Files\CatAI\catai_beta.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Microsoft.OWCValidation.Install.Automation.Helpers.Runnable.<>c__DisplayClass11_0.<CanBeStarted>b__0() in C:\__w\1\s\src\OWCValidation.Install.Automation\Helpers\Runnable.cs:line 167
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
   at Microsoft.OWCValidation.Install.Automation.Helpers.Runnable.CanBeStarted() in C:\__w\1\s\src\OWCValidation.Install.Automation\Helpers\Runnable.cs:line 176
   at Microsoft.OWCValidation.Install.Automation.Helpers.Runnable.Launch() in C:\__w\1\s\src\OWCValidation.Install.Automation\Helpers\Runnable.cs:line 113

我想她至少应该能匹配到

Checking if C:\Program Files\CatAI\catai_beta.exe executable file can be started.
Exception during executable launch operation System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'C:\Program Files\CatAI\catai_beta.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.)

可能的关键词是 Exception during executable launch operation,但我觉得正则也有可能。
不过正则是另一回事,和这个议题无关。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

新功能希望实现新功能

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions