C# Class Microsoft.Protocols.TestManager.KerberosPlugin.Logger

Exibir arquivo Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
AddLineToLog ( LogLevel level ) : void
AddLog ( string msg, LogLevel level, bool startNewLine = true, LogStyle style = LogStyle.Default ) : void

Write a log message.

Logger ( string fileName ) : System
RunCmd ( string command ) : Process
RunCmdAndGetOutput ( string command ) : string

Private Methods

Method Description
AppendLog ( string msg ) : void

Method Details

AddLineToLog() public method

public AddLineToLog ( LogLevel level ) : void
level LogLevel
return void

AddLog() public method

Write a log message.
public AddLog ( string msg, LogLevel level, bool startNewLine = true, LogStyle style = LogStyle.Default ) : void
msg string Log message.
level LogLevel Log level.
startNewLine bool Start a new line before this message when to UI. True by default.
style LogStyle The style of the message
return void

Logger() public method

public Logger ( string fileName ) : System
fileName string
return System

RunCmd() public method

public RunCmd ( string command ) : Process
command string
return System.Diagnostics.Process

RunCmdAndGetOutput() public method

public RunCmdAndGetOutput ( string command ) : string
command string
return string