public class MicroEJInternalLoggerFactory extends Object implements InternalLoggerFactory, Logger
Constructor and Description |
---|
MicroEJInternalLoggerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
config(String sourceClass,
String sourceMethod,
int errorCode)
Log a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
config(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Log a message, specifying source class and method, with an array of object arguments, if the logger is currently
enabled for the given message level.
|
void |
config(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable thrown)
Log a message, specifying source class and method, with an array of object arguments and a throwable, if the
logger is currently enabled for the given message level.
|
void |
dumpTrace() |
void |
fine(String sourceClass,
String sourceMethod,
int errorCode)
Trace a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
fine(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Trace a message, specifying source class and method, with an array of object arguments, if the logger is
currently enabled for the given message level.
|
void |
fine(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable ex) |
void |
finer(String sourceClass,
String sourceMethod,
int errorCode)
Trace a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
finer(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Trace a message, specifying source class and method, with an array of object arguments, if the logger is
currently enabled for the given message level.
|
void |
finer(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable ex) |
void |
finest(String sourceClass,
String sourceMethod,
int errorCode)
Trace a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
finest(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Trace a message, specifying source class and method, with an array of object arguments, if the logger is
currently enabled for the given message level.
|
void |
finest(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable ex) |
Logger |
getLogger(String messageCatalogName,
String loggerID,
String overrideloggerClassName)
Find or create a logger for a named package/class.
|
String |
getLoggingProperty(String name)
When run in JSR47, this allows access to the properties in the logging.properties file.
|
void |
info(String sourceClass,
String sourceMethod,
int errorCode)
Log a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
info(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Log a message, specifying source class and method, with an array of object arguments, if the logger is currently
enabled for the given message level.
|
void |
info(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable thrown)
Log a message, specifying source class and method, with an array of object arguments and a throwable, if the
logger is currently enabled for the given message level.
|
boolean |
isLoggable(int level)
Check if a message of the given level would actually be logged by this logger.
|
void |
log(int level,
String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable thrown)
Log a message, specifying source class and method, with an array of object arguments and a throwable, if the
logger is currently enabled for the given message level.
|
void |
setResourceName(String logContext)
Set a name that can be used to provide context with each log record.
|
void |
severe(String sourceClass,
String sourceMethod,
int errorCode)
Log a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
severe(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Log a message, specifying source class and method, with an array of object arguments, if the logger is currently
enabled for the given message level.
|
void |
severe(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable thrown)
Log a message, specifying source class and method, with an array of object arguments and a throwable, if the
logger is currently enabled for the given message level.
|
void |
trace(int level,
String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable ex)
Log a trace message, specifying source class and method, with an array of object arguments and a throwable, if
the logger is currently enabled for the given message level.
|
void |
warning(String sourceClass,
String sourceMethod,
int errorCode)
Log a message, specifying source class and method, if the logger is currently enabled for the given message
level.
|
void |
warning(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts)
Log a message, specifying source class and method, with an array of object arguments, if the logger is currently
enabled for the given message level.
|
void |
warning(String sourceClass,
String sourceMethod,
int errorCode,
Object[] inserts,
Throwable thrown)
Log a message, specifying source class and method, with an array of object arguments and a throwable, if the
logger is currently enabled for the given message level.
|
public void config(String sourceClass, String sourceMethod, int errorCode)
Logger
public void config(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void config(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable thrown)
Logger
public void fine(String sourceClass, String sourceMethod, int errorCode)
Logger
public void fine(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void fine(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable ex)
public void finer(String sourceClass, String sourceMethod, int errorCode)
Logger
public void finer(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void finer(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable ex)
public void finest(String sourceClass, String sourceMethod, int errorCode)
Logger
public void finest(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void finest(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable ex)
public Logger getLogger(String messageCatalogName, String loggerID, String overrideloggerClassName)
InternalLoggerFactory
getLogger
in interface InternalLoggerFactory
messageCatalogName
- the resource bundle containing the logging messages.loggerID
- unique name to identify this logger.overrideloggerClassName
- the class name of the logger to use.@Nullable public String getLoggingProperty(String name)
InternalLoggerFactory
getLoggingProperty
in interface InternalLoggerFactory
name
- the property to returnpublic void info(String sourceClass, String sourceMethod, int errorCode)
Logger
public void info(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void info(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable thrown)
Logger
public boolean isLoggable(int level)
Logger
isLoggable
in interface Logger
level
- a message logging level.public void log(int level, String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, @Nullable Throwable thrown)
Logger
log
in interface Logger
level
- One of the message level identifiers, e.g. SEVERE.sourceClass
- Name of class that issued the logging request.sourceMethod
- Name of method that issued the logging request.errorCode
- Message indexinserts
- Array of parameters to the message, may be null.thrown
- Throwable associated with log message.public void setResourceName(String logContext)
Logger
setResourceName
in interface Logger
public void severe(String sourceClass, String sourceMethod, int errorCode)
Logger
public void severe(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void severe(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable thrown)
Logger
public void trace(int level, String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, @Nullable Throwable ex)
Logger
trace
in interface Logger
level
- One of the message level identifiers, e.g. SEVERE.sourceClass
- Name of class that issued the logging request.sourceMethod
- Name of method that issued the logging request.errorCode
- Message indexinserts
- Array of parameters to the message, may be null.public void warning(String sourceClass, String sourceMethod, int errorCode)
Logger
public void warning(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts)
Logger
public void warning(String sourceClass, String sourceMethod, int errorCode, @Nullable Object[] inserts, Throwable thrown)
Logger