Class ProtoLogger

java.lang.Object
org.apache.maven.cling.invoker.ProtoLogger
All Implemented Interfaces:
Logger

public class ProtoLogger extends Object implements Logger
Proto Logger. Uses provided PrintStreams or System ones as fallback. Supports only two levels: ERROR and WARNING, that is emitted to STDERR and STDOUT.
  • Constructor Details

  • Method Details

    • log

      public void log(Logger.Level level, String message, Throwable error)
      Description copied from interface: Logger
      Logs a message at the specified level with an associated exception.
      Specified by:
      log in interface Logger
      Parameters:
      level - the severity level of the message
      message - the message to be logged
      error - the associated exception, or null if not applicable