C# Class CSharpRoboticsLib.Utility.Logger

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

Public Methods

Method 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

Method Description
Logger ( ) : System

Method Details

AddMessage() public static method

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 [
return void

Clear() public static method

Clears all messages
public static Clear ( ) : void
return void

ResetTimer() public static method

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

Save() public static method

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

ToString() public static method

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

UpdateSmartDashboard() public static method

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