C# Class CSharpRoboticsLib.Utility.Logger

Static class that can log all information to a text file or SmartDashboard variable
Afficher le fichier Open project: shockwave4488/CSharpRoboticsLib

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Logger ( ) : System

Method Details

AddMessage() public static méthode

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 [
Résultat void

Clear() public static méthode

Clears all messages
public static Clear ( ) : void
Résultat void

ResetTimer() public static méthode

Resets the time value to zero
public static ResetTimer ( ) : void
Résultat void

Save() public static méthode

Saves the log as a text file
public static Save ( string filePath ) : void
filePath string
Résultat void

ToString() public static méthode

Returns the contents of the Logger
public static ToString ( ) : string
Résultat string

UpdateSmartDashboard() public static méthode

Updates the related SmartDashboard variable if applicable
public static UpdateSmartDashboard ( ) : void
Résultat void