C# 클래스 Revit.SDK.Samples.EventsMonitor.CS.LogManager

This class implements all operators about writing log file and generating event information for showing in the information window. This class is not the main one just a assistant in this sample. If you just want to learn how to use Revit events, please pay more attention to EventManager class.
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
CloseLogFile ( ) : void

Close the log file and remove the corresponding listener.

LogManager ( ) : System

Constructor without argument.

TrackEvent ( Object sender, EventArgs args ) : void

When any event which has been subscribed is fired, log its information. the information includes: machine name, user, time and event

WriteLogFile ( Object sender, EventArgs args ) : void

Write log to file, event name and type will be dumped

비공개 메소드들

메소드 설명
CreateEventsLogTable ( ) : DataTable

Generate a data table with four columns for display in window

CreateLogFile ( ) : void

Create a log file to track the subscribed events' work process.

GetEventsName ( Type type ) : String

Get event name from its EventArgs, without namespace prefix

메소드 상세

CloseLogFile() 공개 메소드

Close the log file and remove the corresponding listener.
public CloseLogFile ( ) : void
리턴 void

LogManager() 공개 메소드

Constructor without argument.
public LogManager ( ) : System
리턴 System

TrackEvent() 공개 메소드

When any event which has been subscribed is fired, log its information. the information includes: machine name, user, time and event
public TrackEvent ( Object sender, EventArgs args ) : void
sender Object Event sender.
args System.EventArgs EventArgs of this event.
리턴 void

WriteLogFile() 공개 메소드

Write log to file, event name and type will be dumped
public WriteLogFile ( Object sender, EventArgs args ) : void
sender Object Event sender.
args System.EventArgs EventArgs of this event.
리턴 void