public static class Logger.SlaveLogger extends Logger
Logger.SlaveLogger, Logger.StringBuilderLoggerBLUE_COLOR, DEFAULT_LOGGER, ERROR_COLOR, GREEN_COLOR, IJ_LOGGER, IJTOOLBAR_LOGGER, NORMAL_COLOR, VOID_LOGGERout| Constructor and Description |
|---|
SlaveLogger(Logger master,
double progressStart,
double progressRange)
Create a new slave logger that will report progress to its master in
the following way: If a sub-process reports a progress of
val, then the master logger will receive the progress
value progressStart + progressRange * val. |
| 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.
|
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, writepublic SlaveLogger(Logger master, double progressStart, double progressRange)
val, then the master logger will receive the progress
value progressStart + progressRange * val.master - the master Logger.progressStart - the progress to start with.progressRange - the progress range to report.public void log(String message, Color color)
Loggerpublic void error(String message)
Loggerpublic void setProgress(double val)
LoggersetProgress in class Loggerval - the progress value (double from 0 to 1).Copyright © 2015–2021 Fiji. All rights reserved.