Package io.deephaven.util
Class SystemStreamAdapter
java.lang.Object
io.deephaven.util.SystemStreamAdapter
Class to allow logs to receive sysout and syserr output.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
sendSystemErrToLogger
(Logger logger) Redirect System.err to the specified logger, at level STDERR.static void
sendSystemOutToLogger
(Logger logger) Redirect System.out to the specified logger, at level STDOUT.
-
Constructor Details
-
SystemStreamAdapter
public SystemStreamAdapter()
-
-
Method Details
-
sendSystemOutToLogger
Redirect System.out to the specified logger, at level STDOUT.- Parameters:
logger
- the receiving logger
-
sendSystemErrToLogger
Redirect System.err to the specified logger, at level STDERR.- Parameters:
logger
- the receiving logger
-