Package org.wildstang.framework.logger
Class Log
java.lang.Object
org.wildstang.framework.logger.Log
Static class wrapping System.out/err logging functions for nicer and controlled output.
The level controls which log functions work the higher the set level, the fewers logs.
Lowest to highest: info, warn, error, none.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog no matter what.static voidLog at level "error".static voidLog at level "info".static voidsetLevel(Log.LogLevel level) Sets the minimum LogLevel to log at.static voidLog at level "warn".
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
info
Log at level "info". This is meant for normal messages that mean no alarm.- Parameters:
msg- Log message text.
-
warn
Log at level "warn". This is meant for warning messages that mean something is approaching problematic.- Parameters:
msg- Log message text.
-
error
Log at level "error". This is meant for error messages that mean something went wrong and require attention.- Parameters:
msg- Log message text.
-
danger
Log no matter what. This is meant for messages that mean the robot has entered a potentially dangerous state. E.g. The robot entering autonomous mode.- Parameters:
msg- Log message text.
-
setLevel
Sets the minimum LogLevel to log at.- Parameters:
level- Lowest case at which it should log.
-