EventLogSession.ExportLogAndMessages 메서드

정의

이벤트 및 해당 메시지를 외부 로그 파일로 내보냅니다.

오버로드

ExportLogAndMessages(String, PathType, String, String)

이벤트 및 해당 메시지를 외부 로그 파일로 내보냅니다.

ExportLogAndMessages(String, PathType, String, String, Boolean, CultureInfo)

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

ExportLogAndMessages(String, PathType, String, String)

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

이벤트 및 해당 메시지를 외부 로그 파일로 내보냅니다.

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

매개 변수

path
String

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

pathType
PathType

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

query
String

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

targetFilePath
String

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

예제

이 클래스를 사용하는 예제 코드는 방법: 내보내기, 보관 및 이벤트 로그 지우기를 참조하세요.

설명

이벤트 메시지는 기본 언어로 내보내집니다.

추가 정보

적용 대상

ExportLogAndMessages(String, PathType, String, String, Boolean, CultureInfo)

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

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

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

매개 변수

path
String

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

pathType
PathType

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

query
String

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

targetFilePath
String

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

tolerateQueryErrors
Boolean

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

targetCultureInfo
CultureInfo

내보낸 이벤트 메시지의 언어를 지정하는 문화권입니다.

예제

이 클래스를 사용하는 예제 코드는 방법: 내보내기, 보관 및 이벤트 로그 지우기를 참조하세요.

추가 정보

적용 대상