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 void
debug(String pMessage, byte[] pData)
Write a debug message with hex data.void
debug(String pMessage, byte[] pData, int pOffset, int pLength)
Write a debug message with hex data.void
debug(String pFormat, Object... pArgs)
Write a debug message with parameters.void
error(String pFormat, Object... pArgs)
Write an error message with parameters.void
error(String pMessage, Throwable pException)
Write an error message with exception.void
fatal(String pFormat, Object... pArgs)
Write a fatal error message with parameters.void
fatal(String pMessage, Throwable pException)
Write a fatal error message with exception.void
info(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
-