C# Class GeekyTool.Core.LogManager.StorageFileEventListener

This is an advanced useage, where you want to intercept the logging messages and devert them somewhere besides ETW.
Inheritance: System.Diagnostics.Tracing.EventListener
ファイルを表示 Open project: GeekyTheory/GeekyTool

Public Methods

Method Description
StorageFileEventListener ( string name ) : System

Protected Methods

Method Description
OnEventSourceCreated ( System.Diagnostics.Tracing.EventSource eventSource ) : void
OnEventWritten ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void

Private Methods

Method Description
AssignLocalFile ( ) : void
WriteToFile ( IEnumerable lines ) : void

Method Details

OnEventSourceCreated() protected method

protected OnEventSourceCreated ( System.Diagnostics.Tracing.EventSource eventSource ) : void
eventSource System.Diagnostics.Tracing.EventSource
return void

OnEventWritten() protected method

protected OnEventWritten ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void
eventData System.Diagnostics.Tracing.EventWrittenEventArgs
return void

StorageFileEventListener() public method

public StorageFileEventListener ( string name ) : System
name string
return System