Package org.scijava.log
Class StderrLogService
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.service.AbstractService
-
- org.scijava.log.AbstractLogService
-
- org.scijava.log.StderrLogService
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Initializable,Locatable,Logged,Logger,LogService,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,Versioned
public class StderrLogService extends AbstractLogService
Implementation ofLogServiceusing the standard error stream.Actually, this service is somewhat misnamed now, since it prints
WARNandERRORmessages to stderr, but messages at lesser severities to stdout.- Author:
- Johannes Schindelin, Curtis Rueden
-
-
Field Summary
-
Fields inherited from interface org.scijava.log.LogService
DEBUG, ERROR, INFO, LOG_LEVEL_BY_SOURCE_PROPERTY, LOG_LEVEL_PROPERTY, NONE, TRACE, WARN
-
-
Constructor Summary
Constructors Constructor Description StderrLogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidmessageLogged(LogMessage message)voidsetPrintStreams(Function<Integer,PrintStream> levelToStream)-
Methods inherited from class org.scijava.log.AbstractLogService
addLogListener, alwaysLog, getLevel, getPrefix, getSource, notifyListeners, removeLogListener, setLevel, setLevel, setLevelForLogger, subLogger
-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.log.Logger
debug, debug, debug, error, error, error, getName, info, info, info, isDebug, isError, isInfo, isLevel, isTrace, isWarn, log, log, log, subLogger, trace, trace, trace, warn, warn, warn
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
setPrintStreams
public void setPrintStreams(Function<Integer,PrintStream> levelToStream)
-
messageLogged
protected void messageLogged(LogMessage message)
- Specified by:
messageLoggedin classAbstractLogService
-
-