C# Class SharpAdbClient.Log

ファイルを表示 Open project: ArduPilot/MissionPlanner

Public Methods

Method Description
Debug ( string tag, string format ) : void

Outputs a Debug level message.

Error ( string tag, Exception exception ) : void

Outputs a Error level message.

Error ( string tag, string format ) : void

Outputs a Error level message.

GetLogFormatString ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : string

Formats a log message.

Info ( string tag, string format ) : void

Outputs a Info level message.

LogAndDisplay ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : void

Outputs a log message and attempts to display it in a dialog.

Verbose ( string tag, string format ) : void

Outputs a Verbose level message.

Warn ( string tag, Exception exception ) : void

Outputs a Warn level message.

Warn ( string tag, string format ) : void

Outputs a Warn level message.

Write ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : void

Prints a log message.

Private Methods

Method Description
Log ( ) : System

Initializes static members of the Log class.

WriteLine ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : void

prints to stdout; could write to a log window

Method Details

Debug() public static method

Outputs a Debug level message.
public static Debug ( string tag, string format ) : void
tag string The tag associated with the message.
format string The message to output format string.
return void

Error() public static method

Outputs a Error level message.
public static Error ( string tag, Exception exception ) : void
tag string The tag associated with the message.
exception System.Exception The exception to warn
return void

Error() public static method

Outputs a Error level message.
public static Error ( string tag, string format ) : void
tag string The tag associated with the message.
format string The message to output format string.
return void

GetLogFormatString() public static method

Formats a log message.
public static GetLogFormatString ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : string
logLevel SharpAdbClient.LogLevel
tag string
message string
return string

Info() public static method

Outputs a Info level message.
public static Info ( string tag, string format ) : void
tag string The tag associated with the message.
format string The message to output format string.
return void

LogAndDisplay() public static method

Outputs a log message and attempts to display it in a dialog.
public static LogAndDisplay ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : void
logLevel SharpAdbClient.LogLevel The log level
tag string The tag associated with the message.
message string The message to output.
return void

Verbose() public static method

Outputs a Verbose level message.
public static Verbose ( string tag, string format ) : void
tag string The tag associated with the message.
format string The message to output format string.
return void

Warn() public static method

Outputs a Warn level message.
public static Warn ( string tag, Exception exception ) : void
tag string The tag associated with the message.
exception System.Exception The exception to warn
return void

Warn() public static method

Outputs a Warn level message.
public static Warn ( string tag, string format ) : void
tag string The tag associated with the message.
format string The message to output format string.
return void

Write() public static method

Prints a log message.
public static Write ( SharpAdbClient.LogLevel logLevel, string tag, string message ) : void
logLevel SharpAdbClient.LogLevel
tag string
message string
return void