public static class Logger.StringBuilderLogger extends Logger
Logger
outputs to a StringBuilder given at construction.
Report progress and colors are ignored.Logger.SlaveLogger, Logger.StringBuilderLogger
BLUE_COLOR, DEFAULT_LOGGER, ERROR_COLOR, GREEN_COLOR, IJ_LOGGER, IJTOOLBAR_LOGGER, NORMAL_COLOR, VOID_LOGGER
out
Constructor and Description |
---|
StringBuilderLogger() |
StringBuilderLogger(StringBuilder sb) |
Modifier and Type | Method and Description |
---|---|
void |
error(String message)
Send the message to the error channel of this logger.
|
void |
log(String message,
Color color)
Append the message to the logger, with the specified color.
|
void |
setProgress(double val)
Set the progress value of the process logged by this logger.
|
void |
setStatus(String status)
Set the status to be displayed by this logger.
|
String |
toString() |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public StringBuilderLogger(StringBuilder sb)
public StringBuilderLogger()
public void log(String message, Color color)
Logger
public void error(String message)
Logger
public void setProgress(double val)
Logger
setProgress
in class Logger
val
- the progress value (double from 0 to 1).public void setStatus(String status)
Logger
Copyright © 2015–2021 Fiji. All rights reserved.