public class LevelFilteredPrinter extends AbstractPrinter
info(String)
and higher are printed.AbstractPrinter.Level
Constructor and Description |
---|
LevelFilteredPrinter()
Uses the
AbstractPrinter.getContextPrinter() as the delegate. |
LevelFilteredPrinter(Printer delegate) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Prints a debug message.
|
void |
error(String message)
Prints an error condition.
|
void |
info(String message)
Prints an informative ("normal") message.
|
void |
setDebug()
Print all messages (errors, warnings, info, verbose and debug).
|
void |
setNoError()
Suppress all messages.
|
void |
setNormal()
Revert to default settings.
|
void |
setNoWarn()
Suppress all messages but errors.
|
void |
setQuiet()
Suppress "normal" output; print only errors and warnings.
|
void |
setVerbose()
Print all messages (errors, warnings, infos and verbose) except debug.
|
void |
verbose(String message)
Prints a verbose message.
|
void |
warn(String message)
Prints a warning condition.
|
debug, discard, discard, discardDebug, discardError, discardInfo, discardVerbose, discardWarn, error, error, error, fromPrinter, getContextPrinter, info, redirect, redirect, redirect, redirect, redirectDebug, redirectDebug, redirectError, redirectError, redirectInfo, redirectInfo, redirectVerbose, redirectVerbose, redirectWarn, redirectWarn, run, run, verbose, warn
public LevelFilteredPrinter()
AbstractPrinter.getContextPrinter()
as the delegate.LevelFilteredPrinter
public LevelFilteredPrinter(Printer delegate)
LevelFilteredPrinter
public void setNoError()
public void setNoWarn()
public void setQuiet()
public void setNormal()
public void setVerbose()
public void setDebug()
public void error(@Nullable String message)
Printer
public void warn(@Nullable String message)
Printer
public void info(@Nullable String message)
Printer
public void verbose(@Nullable String message)
Printer
Copyright © 2018 Arno Unkrig. All rights reserved.