Package net.sourceforge.jarduino.util
Class ArduinoLogger
java.lang.Object
net.sourceforge.jarduino.util.ArduinoLogger
public class ArduinoLogger extends Object
Logger instance.
-
Constructor Summary
Constructors Constructor Description ArduinoLogger(ArduinoLogManager pManager, Class<?> pOwner)Constructor. -
Method Summary
Modifier and Type Method Description voiddebug(String pMessage, byte[] pData)Write a debug message with hex data.voiddebug(String pMessage, byte[] pData, int pOffset, int pLength)Write a debug message with hex data.voiddebug(String pFormat, Object... pArgs)Write a debug message with parameters.voiderror(String pFormat, Object... pArgs)Write an error message with parameters.voiderror(String pMessage, Throwable pException)Write an error message with exception.voidfatal(String pFormat, Object... pArgs)Write a fatal error message with parameters.voidfatal(String pMessage, Throwable pException)Write a fatal error message with exception.voidinfo(String pFormat, Object... pArgs)Write an information message with parameters.
-
Constructor Details
-
ArduinoLogger
Constructor.- Parameters:
pManager- the managerpOwner- the owning class
-
-
Method Details
-
debug
Write a debug message with parameters.- Parameters:
pFormat- the formatpArgs- the arguments
-
debug
Write a debug message with hex data.- Parameters:
pMessage- the messagepData- the data
-
debug
Write a debug message with hex data.- Parameters:
pMessage- the messagepData- the datapOffset- the offsetpLength- the length of data
-
info
Write an information message with parameters.- Parameters:
pFormat- the formatpArgs- the arguments
-
error
Write an error message with parameters.- Parameters:
pFormat- the formatpArgs- the arguments
-
error
Write an error message with exception.- Parameters:
pMessage- the messagepException- the exception
-
fatal
Write a fatal error message with parameters.- Parameters:
pFormat- the formatpArgs- the arguments
-
fatal
Write a fatal error message with exception.- Parameters:
pMessage- the messagepException- the exception
-