public abstract class Logger extends PrintWriter
Modifier and Type | Class and Description |
---|---|
static class |
Logger.SlaveLogger
A logger that wraps a master logger and uses it to echo any received
message.
|
static class |
Logger.StringBuilderLogger
This
Logger outputs to a StringBuilder given at construction. |
Modifier and Type | Field and Description |
---|---|
static Color |
BLUE_COLOR |
static Logger |
DEFAULT_LOGGER
This
Logger simply outputs to the standard output and standard
error. |
static Color |
ERROR_COLOR |
static Color |
GREEN_COLOR |
static Logger |
IJ_LOGGER
This
Logger outputs to the ImageJ log window, and to the ImageJ
toolbar to report progress. |
static Logger |
IJTOOLBAR_LOGGER
This
Logger outputs everything to the ImageJ toolbar. |
static Color |
NORMAL_COLOR |
static Logger |
VOID_LOGGER
This logger discard any message.
|
out
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
abstract void |
error(String message)
Send the message to the error channel of this logger.
|
void |
log(String message)
Append the message to the logger with default black color.
|
abstract void |
log(String message,
Color color)
Append the message to the logger, with the specified color.
|
abstract void |
setProgress(double val)
Set the progress value of the process logged by this logger.
|
abstract 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, write
public static final Color NORMAL_COLOR
public static final Color ERROR_COLOR
public static final Color GREEN_COLOR
public static final Color BLUE_COLOR
public static final Logger VOID_LOGGER
public static Logger DEFAULT_LOGGER
Logger
simply outputs to the standard output and standard
error. The setProgress(double)
method is ignored, the
setStatus(String)
is sent to the console.public static Logger IJ_LOGGER
Logger
outputs to the ImageJ log window, and to the ImageJ
toolbar to report progress. Colors are ignored.public abstract void log(String message, Color color)
message
- the message to append.color
- the color to use.public abstract void error(String message)
message
- the message to send.public void log(String message)
message
- the message to append.public abstract void setProgress(double val)
val
- the progress value (double from 0 to 1).public abstract void setStatus(String status)
status
- the status to display.Copyright © 2015–2021 Fiji. All rights reserved.