public interface Logger
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggable(java.util.logging.Level level)
Returns true if the given log level will be logged.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern)
Concatenate the given parts and log them at the given level.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1)
Log a message at the given level using the provided pattern with one replacement.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object[] msg)
Do not use.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2)
Log a message at the given level using the provided pattern with two replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3)
Log a message at the given level using the provided pattern with three replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4)
Log a message at the given level using the provided pattern with four replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5)
Log a message at the given level using the provided pattern with five replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6)
Log a message at the given level using the provided pattern with six replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6,
java.lang.Object part7)
Log a message at the given level using the provided pattern with seven replacements.
|
void |
log(java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6,
java.lang.Object part7,
java.lang.Object... otherParts)
Log a message at the given level using the provided pattern with seven + any other replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern)
Log a message with given Throwable information.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1)
Log a message at the given level using the provided pattern and throwable with one replacement.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object[] msg)
Do not use.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2)
Log a message at the given level using the provided pattern and throwable with two replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3)
Log a message at the given level using the provided pattern and throwable with three replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4)
Log a message at the given level using the provided pattern and throwable with four replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5)
Log a message at the given level using the provided pattern and throwable with five replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6)
Log a message at the given level using the provided pattern and throwable with six replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6,
java.lang.Object part7)
Log a message at the given level using the provided pattern and throwable with seven replacements.
|
void |
log(java.util.logging.Level level,
java.lang.Throwable t,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4,
java.lang.Object part5,
java.lang.Object part6,
java.lang.Object part7,
java.lang.Object... otherParts)
Log a message at the given level using the provided pattern and throwable with seven + any other replacements.
|
void |
logToChild(java.lang.String childName,
java.util.logging.Level level,
java.lang.String pattern,
java.lang.Object part1,
java.lang.Object part2,
java.lang.Object part3,
java.lang.Object part4)
Concatenate the given parts and log them at the given level.
|
boolean isLoggable(java.util.logging.Level level)
log(Level, String, Object...)
methods with the message broken into parts. The overhead of the
concatenation will not be incurred if the log level isn't met.level
- The level to be verified.void log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object[] msg)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.msg
- The parts to be placed in the log message using the MessageFormat
style.void log(java.util.logging.Level level, java.lang.String pattern)
null
, its value will be
represented as "null". If a part is a Class
, the value of Class.getName()
will be used.level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.void log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6, java.lang.Object part7)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylepart7
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6, java.lang.Object part7, java.lang.Object... otherParts)
level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylepart7
- The part to be replaced in the log message using the MessageFormat
styleotherParts
- The other parts to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object[] msg)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.msg
- The parts to be placed in the log message using the MessageFormat
style.void log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern)
null
, its value will be represented as "null". If a part is a
Class
, the value of Class.getName()
will be used.level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.msg
- The parts to be placed in the log message using the MessageFormat
style.void log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6, java.lang.Object part7)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylepart7
- The part to be replaced in the log message using the MessageFormat
stylevoid log(java.util.logging.Level level, java.lang.Throwable t, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4, java.lang.Object part5, java.lang.Object part6, java.lang.Object part7, java.lang.Object... otherParts)
level
- The level at which the message should be logged.t
- The exception to be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
stylepart5
- The part to be replaced in the log message using the MessageFormat
stylepart6
- The part to be replaced in the log message using the MessageFormat
stylepart7
- The part to be replaced in the log message using the MessageFormat
styleotherParts
- The other parts to be replaced in the log message using the MessageFormat
stylevoid logToChild(java.lang.String childName, java.util.logging.Level level, java.lang.String pattern, java.lang.Object part1, java.lang.Object part2, java.lang.Object part3, java.lang.Object part4)
null
, its value will be
represented as "null". If a part is a Class
, the value of Class.getName()
will be used.childName
- The name of the child logger.level
- The level at which the message should be logged.pattern
- A message format pattern in the MessageFormat
style.part1
- The part to be replaced in the log message using the MessageFormat
stylepart2
- The part to be replaced in the log message using the MessageFormat
stylepart3
- The part to be replaced in the log message using the MessageFormat
stylepart4
- The part to be replaced in the log message using the MessageFormat
style