public class JSR47Logger_impl extends Logger_common_impl
EMPTY_STACK_TRACE_INFO, EXCEPTION_MESSAGE, fqcn, fqcnCmn, limit_common
UIMA_MARKER_CONFIG, UIMA_MARKER_FINEST
Modifier and Type | Method and Description |
---|---|
static JSR47Logger_impl |
getInstance()
Creates a new JSR47Logger instance with the default JSR-47 framework logger
|
static Logger |
getInstance(Class<?> component)
Creates a new JSR47Logger instance for the specified source class
|
static Logger |
getInstance(JSR47Logger_impl l,
int limit) |
static Level |
getJSR47Level(Level level,
org.slf4j.Marker m)
JSR-47 level mapping to UIMA level mapping.
|
JSR47Logger_impl |
getLimitedLogger(int limit) |
String |
getName() |
boolean |
isDebugEnabled() |
boolean |
isDebugEnabled(org.slf4j.Marker arg0) |
boolean |
isErrorEnabled() |
boolean |
isErrorEnabled(org.slf4j.Marker arg0) |
boolean |
isInfoEnabled() |
boolean |
isInfoEnabled(org.slf4j.Marker arg0) |
boolean |
isLoggable(Level level)
Checks if the argument level is greater or equal to the specified level
|
boolean |
isLoggable(Level level,
org.slf4j.Marker m)
Checks if this logger is enabled for this level and this marker
|
boolean |
isTraceEnabled() |
boolean |
isTraceEnabled(org.slf4j.Marker arg0) |
boolean |
isWarnEnabled() |
boolean |
isWarnEnabled(org.slf4j.Marker arg0) |
void |
log(org.slf4j.Marker m,
String aFqcn,
Level level,
String msg,
Object[] args,
Throwable throwable)
The main log call implemented by subclasses
|
void |
log(org.slf4j.Marker m,
String aFqcn,
Level level,
String msg,
Throwable throwable)
The version of the main log call implemented by subclasses that skips the substitution because
it already was done by rb()
|
void |
log2(org.slf4j.Marker m,
String aFqcn,
Level level,
String msg,
Object[] args,
Throwable throwable)
The version of the main log call implemented by subclasses that uses {}, not {n} as the
substitutable syntax.
|
void |
setLevel(Level level)
Sets the level of messages that will be logged by this logger.
|
void |
setOutputStream(OutputStream out)
Deprecated.
use external configuration possibility
|
void |
setOutputStream(PrintStream out)
Deprecated.
use external configuration possibility
|
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, getMarkerForLevel, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, isAnnotatorLogger, isEmpty, log, log, log, log, log, log, log, logException, logrb, logrb, logrb, logrb, rb, setAnnotatorLogger, setResourceManager, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
public static Logger getInstance(Class<?> component)
component
- current source classpublic static Logger getInstance(JSR47Logger_impl l, int limit)
public static JSR47Logger_impl getInstance()
public JSR47Logger_impl getLimitedLogger(int limit)
limit
- the limit@Deprecated public void setOutputStream(OutputStream out)
Logger
null
will disable the logger.setOutputStream
in class Logger_common_impl
out
- OutputStream
to which log messages will be printedLogger.setOutputStream(java.io.OutputStream)
@Deprecated public void setOutputStream(PrintStream out)
Logger
null
will disable the logger.setOutputStream
in class Logger_common_impl
out
- PrintStream
to which log messages will be printedLogger.setOutputStream(java.io.PrintStream)
public static Level getJSR47Level(Level level, org.slf4j.Marker m)
level
- uima levelm
- the markerpublic boolean isLoggable(Level level)
Logger
level
- message levelpublic boolean isLoggable(Level level, org.slf4j.Marker m)
Logger
level
- the level to testm
- null or the marker to testpublic void setLevel(Level level)
Logger
UIMAFramework.getLogger().setLevel(level)
, this will only change the logging level
for messages produced by the UIMA framework. It will NOT change the logging level for messages
produced by annotators. To change the logging level for an annotator, use
UIMAFramework.getLogger(YourAnnotatorClass.class).setLevel(level)
.
If you need more flexibility it configuring the logger, consider using the standard Java logger properties file or the java.util.logging APIs.
level
- message levelpublic void log(org.slf4j.Marker m, String aFqcn, Level level, String msg, Object[] args, Throwable throwable)
Logger_common_impl
log
in class Logger_common_impl
m
- the markeraFqcn
- the fully qualified class name of the top-most logging class used to filter the stack
trace to get the caller class / method infolevel
- the UIMA levelmsg
- -args
- - arguments to be substituted into the messagethrowable
- - can be nullpublic void log(org.slf4j.Marker m, String aFqcn, Level level, String msg, Throwable throwable)
Logger_common_impl
log
in class Logger_common_impl
m
- the markeraFqcn
- the fully qualified class name of the top-most logging class used to filter the stack
trace to get the caller class / method infolevel
- the UIMA levelmsg
- -throwable
- - can be nullpublic void log2(org.slf4j.Marker m, String aFqcn, Level level, String msg, Object[] args, Throwable throwable)
Logger_common_impl
log2
in class Logger_common_impl
m
- the markeraFqcn
- the fully qualified class name of the top-most logging class used to filter the stack
trace to get the caller class / method infolevel
- the UIMA levelmsg
- -args
- - arguments to be substituted into the messagethrowable
- - can be nullpublic String getName()
public boolean isDebugEnabled()
public boolean isDebugEnabled(org.slf4j.Marker arg0)
public boolean isErrorEnabled()
public boolean isErrorEnabled(org.slf4j.Marker arg0)
public boolean isInfoEnabled()
public boolean isInfoEnabled(org.slf4j.Marker arg0)
public boolean isTraceEnabled()
public boolean isTraceEnabled(org.slf4j.Marker arg0)
public boolean isWarnEnabled()
public boolean isWarnEnabled(org.slf4j.Marker arg0)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.