Class SystemStreamAdapter

java.lang.Object
io.deephaven.util.SystemStreamAdapter

public class SystemStreamAdapter extends Object
Class to allow logs to receive sysout and syserr output.
  • Constructor Details

    • SystemStreamAdapter

      public SystemStreamAdapter()
  • Method Details

    • sendSystemOutToLogger

      public static void sendSystemOutToLogger(Logger logger)
      Redirect System.out to the specified logger, at level STDOUT.
      Parameters:
      logger - the receiving logger
    • sendSystemErrToLogger

      public static void sendSystemErrToLogger(Logger logger)
      Redirect System.err to the specified logger, at level STDERR.
      Parameters:
      logger - the receiving logger