C# 클래스 ARCed.Core.Logger

Class for creating a buffer and adding text to. Acts as a loose wrapper for a StringBuilder object, but includes events raised when text is added or when the buffer is flushed to a file.
파일 보기 프로젝트 열기: borisblizzard/arcreator

공개 메소드들

메소드 설명
Append ( object obj ) : void

Appends the string representation of the object to the log

Append ( string text ) : void

Appends the text to the log

AppendFormat ( string text ) : void

Appends text, replacing items in formatted string with objects

AppendHeader ( string message ) : void

Appends a header to the log file to denote a new section

AppendLine ( object obj ) : void

Appends the string representation of the object to the log and adds a newline

AppendLine ( string text ) : void

Appends the text to the log and adds a newline

Clear ( bool notify = false ) : void

Clears the buffer of all logged text

Logger ( ) : System

Default contructor

Save ( string filename, bool flushBuffer ) : void

Saves the log file to disk

비공개 메소드들

메소드 설명
LogConsole ( object obj ) : void
LogConsoleLine ( object obj ) : void

메소드 상세

Append() 공개 메소드

Appends the string representation of the object to the log
public Append ( object obj ) : void
obj object Object to append
리턴 void

Append() 공개 메소드

Appends the text to the log
public Append ( string text ) : void
text string Text to append
리턴 void

AppendFormat() 공개 메소드

Appends text, replacing items in formatted string with objects
public AppendFormat ( string text ) : void
text string Format string
리턴 void

AppendHeader() 공개 메소드

Appends a header to the log file to denote a new section
public AppendHeader ( string message ) : void
message string The text within the header
리턴 void

AppendLine() 공개 메소드

Appends the string representation of the object to the log and adds a newline
public AppendLine ( object obj ) : void
obj object Object to append
리턴 void

AppendLine() 공개 메소드

Appends the text to the log and adds a newline
public AppendLine ( string text ) : void
text string Text to append
리턴 void

Clear() 공개 메소드

Clears the buffer of all logged text
public Clear ( bool notify = false ) : void
notify bool Flag to fire NoteTextChanged event
리턴 void

Logger() 공개 메소드

Default contructor
public Logger ( ) : System
리턴 System

Save() 공개 메소드

Saves the log file to disk
public Save ( string filename, bool flushBuffer ) : void
filename string FullPath where log is saved
flushBuffer bool Flag to clear the buffer after saving
리턴 void