C# Class Microsoft.Common.Core.Logging.FileLogWriter

Inheritance: IActionLogWriter
Mostrar archivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
InTempFolder ( string fileName ) : FileLogWriter
WriteAsync ( MessageCategory category, string message ) : Task

Private Methods

Method Description
FileLogWriter ( string filePath ) : System
GetCategoryString ( MessageCategory category ) : string
GetStringToWrite ( MessageCategory category, string message ) : string
OnProcessExit ( object sender, EventArgs e ) : void
OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
WriteBuffer ( string message, bool flush ) : Task
WriteToFile ( string message ) : Task

Method Details

Flush() public method

public Flush ( ) : void
return void

InTempFolder() public static method

public static InTempFolder ( string fileName ) : FileLogWriter
fileName string
return FileLogWriter

WriteAsync() public method

public WriteAsync ( MessageCategory category, string message ) : Task
category MessageCategory
message string
return Task