C# 클래스 CSharpRoboticsLib.Utility.Logger

Static class that can log all information to a text file or SmartDashboard variable
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib

공개 메소드들

메소드 설명
AddMessage ( string message, int messageLevel, [ memberName = "", [ SourceFilePath = "", [ SourceLineNumber ) : void

Adds a message at the current time

Clear ( ) : void

Clears all messages

ResetTimer ( ) : void

Resets the time value to zero

Save ( string filePath ) : void

Saves the log as a text file

ToString ( ) : string

Returns the contents of the Logger

UpdateSmartDashboard ( ) : void

Updates the related SmartDashboard variable if applicable

비공개 메소드들

메소드 설명
Logger ( ) : System

메소드 상세

AddMessage() 공개 정적인 메소드

Adds a message at the current time
public static AddMessage ( string message, int messageLevel, [ memberName = "", [ SourceFilePath = "", [ SourceLineNumber ) : void
message string
messageLevel int
memberName [
SourceFilePath [
SourceLineNumber [
리턴 void

Clear() 공개 정적인 메소드

Clears all messages
public static Clear ( ) : void
리턴 void

ResetTimer() 공개 정적인 메소드

Resets the time value to zero
public static ResetTimer ( ) : void
리턴 void

Save() 공개 정적인 메소드

Saves the log as a text file
public static Save ( string filePath ) : void
filePath string
리턴 void

ToString() 공개 정적인 메소드

Returns the contents of the Logger
public static ToString ( ) : string
리턴 string

UpdateSmartDashboard() 공개 정적인 메소드

Updates the related SmartDashboard variable if applicable
public static UpdateSmartDashboard ( ) : void
리턴 void