C# Класс CSharpRoboticsLib.Utility.Logger

Static class that can log all information to a text file or SmartDashboard variable
Показать файл Открыть проект

Открытые методы

Метод Описание
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