EventLogSession.ExportLog 메서드

정의

이벤트를 외부 로그 파일로 내보냅니다. 이벤트는 이벤트 메시지 없이 저장됩니다.

오버로드

ExportLog(String, PathType, String, String)

이벤트를 외부 로그 파일로 내보냅니다. 이벤트는 이벤트 메시지 없이 저장됩니다.

ExportLog(String, PathType, String, String, Boolean)

이벤트를 외부 로그 파일로 내보냅니다. 지정한 쿼리가 일부 로그에 대해 실패해도 메서드가 계속 이벤트를 내보냄을 나타내도록 플래그를 설정할 수 있습니다. 이벤트는 이벤트 메시지 없이 저장됩니다.

ExportLog(String, PathType, String, String)

Source:
EventLogSession.cs
Source:
EventLogSession.cs
Source:
EventLogSession.cs

이벤트를 외부 로그 파일로 내보냅니다. 이벤트는 이벤트 메시지 없이 저장됩니다.

public:
 void ExportLog(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType, System::String ^ query, System::String ^ targetFilePath);
public void ExportLog (string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath);
member this.ExportLog : string * System.Diagnostics.Eventing.Reader.PathType * string * string -> unit
Public Sub ExportLog (path As String, pathType As PathType, query As String, targetFilePath As String)

매개 변수

path
String

이벤트를 내보낼 이벤트 로그의 이름 또는 이벤트를 내보낼 이벤트 로그 파일의 경로입니다.

pathType
PathType

경로 매개 변수에 사용되는 문자열이 이벤트 로그의 이름을 지정하는지 또는 이벤트 로그 파일의 경로를 지정하는지 여부를 지정합니다.

query
String

내보낼 이벤트를 선택하는 데 사용되는 쿼리입니다. 쿼리에서 반환되는 이벤트만 내보냅니다.

targetFilePath
String

이 메서드를 실행한 후 내보낸 이벤트가 저장되는 로그 파일의 경로(.evtx로 끝남)입니다.

추가 정보

적용 대상

ExportLog(String, PathType, String, String, Boolean)

Source:
EventLogSession.cs
Source:
EventLogSession.cs
Source:
EventLogSession.cs

이벤트를 외부 로그 파일로 내보냅니다. 지정한 쿼리가 일부 로그에 대해 실패해도 메서드가 계속 이벤트를 내보냄을 나타내도록 플래그를 설정할 수 있습니다. 이벤트는 이벤트 메시지 없이 저장됩니다.

public:
 void ExportLog(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType, System::String ^ query, System::String ^ targetFilePath, bool tolerateQueryErrors);
public void ExportLog (string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors);
member this.ExportLog : string * System.Diagnostics.Eventing.Reader.PathType * string * string * bool -> unit
Public Sub ExportLog (path As String, pathType As PathType, query As String, targetFilePath As String, tolerateQueryErrors As Boolean)

매개 변수

path
String

이벤트를 내보낼 이벤트 로그의 이름 또는 이벤트를 내보낼 이벤트 로그 파일의 경로입니다.

pathType
PathType

경로 매개 변수에 사용되는 문자열이 이벤트 로그의 이름을 지정하는지 또는 이벤트 로그 파일의 경로를 지정하는지 여부를 지정합니다.

query
String

내보낼 이벤트를 선택하는 데 사용되는 쿼리입니다. 쿼리에서 반환되는 이벤트만 내보냅니다.

targetFilePath
String

이 메서드를 실행한 후 내보낸 이벤트가 저장되는 로그 파일의 경로(.evtx로 끝남)입니다.

tolerateQueryErrors
Boolean

true는 지정한 쿼리가 일부 로그에 대해 실패해도 메서드가 계속 이벤트를 내보냄을 나타내고, false는 지정한 쿼리가 실패하면 이 메서드가 이벤트를 계속 내보내지 않음을 나타냅니다.

추가 정보

적용 대상