C# Class XLog.NET.Targets.SyncFileTarget

Inheritance: Target, IFileTarget
Datei anzeigen Open project: Belorus/XLog Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
GetLastLogs ( ) : string
SyncFileTarget ( IFormatter formatter, string logFilePath, bool autoFlush = false ) : System
SyncFileTarget ( string logFilePath ) : System
Write ( string content ) : void

Private Methods

Method Description
ReadFileContentsSafe ( FileInfo f ) : string

Method Details

Flush() public method

public Flush ( ) : void
return void

GetLastLogs() public method

public GetLastLogs ( ) : string
return string

SyncFileTarget() public method

public SyncFileTarget ( IFormatter formatter, string logFilePath, bool autoFlush = false ) : System
formatter IFormatter
logFilePath string
autoFlush bool
return System

SyncFileTarget() public method

public SyncFileTarget ( string logFilePath ) : System
logFilePath string
return System

Write() public method

public Write ( string content ) : void
content string
return void