Class ArduinoLogger

java.lang.Object
net.sourceforge.jarduino.util.ArduinoLogger

public class ArduinoLogger
extends Object
Logger instance.
  • Constructor Details

    • ArduinoLogger

      public ArduinoLogger​(ArduinoLogManager pManager, Class<?> pOwner)
      Constructor.
      Parameters:
      pManager - the manager
      pOwner - the owning class
  • Method Details

    • debug

      public void debug​(String pFormat, Object... pArgs)
      Write a debug message with parameters.
      Parameters:
      pFormat - the format
      pArgs - the arguments
    • debug

      public void debug​(String pMessage, byte[] pData)
      Write a debug message with hex data.
      Parameters:
      pMessage - the message
      pData - the data
    • debug

      public void debug​(String pMessage, byte[] pData, int pOffset, int pLength)
      Write a debug message with hex data.
      Parameters:
      pMessage - the message
      pData - the data
      pOffset - the offset
      pLength - the length of data
    • info

      public void info​(String pFormat, Object... pArgs)
      Write an information message with parameters.
      Parameters:
      pFormat - the format
      pArgs - the arguments
    • error

      public void error​(String pFormat, Object... pArgs)
      Write an error message with parameters.
      Parameters:
      pFormat - the format
      pArgs - the arguments
    • error

      public void error​(String pMessage, Throwable pException)
      Write an error message with exception.
      Parameters:
      pMessage - the message
      pException - the exception
    • fatal

      public void fatal​(String pFormat, Object... pArgs)
      Write a fatal error message with parameters.
      Parameters:
      pFormat - the format
      pArgs - the arguments
    • fatal

      public void fatal​(String pMessage, Throwable pException)
      Write a fatal error message with exception.
      Parameters:
      pMessage - the message
      pException - the exception