public class Logging extends Object
| Constructor and Description |
|---|
Logging() |
| Modifier and Type | Method and Description |
|---|---|
static void |
logCount(Logger logger,
Level level,
int count,
String singularMessage,
String pluralMessage)
Prints a count of something to a log with an appropriate singular or
plural message.
|
static void |
logCount(Logger logger,
Level level,
int count,
String singularMessage,
String pluralMessage,
Object[] singularParams,
Object[] pluralParams)
Prints a count of something to a log with an appropriate singular or
plural message.
|
public static void logCount(Logger logger, Level level, int count, String singularMessage, String pluralMessage)
logger - the Logger to which to print.level - the logging Level.count - the count to print.singularMessage - the message string to print if the count is
1. In MessageFormat style. The
{0} parameter will be replaced by the count.pluralMessage - the message string to print if the count is
0 or greater than 1. in
MessageFormat style. the {0} parameter
will be replaced by the count.public static void logCount(Logger logger, Level level, int count, String singularMessage, String pluralMessage, Object[] singularParams, Object[] pluralParams)
logger - the Logger to which to print.level - the logging Level.count - the count to print.singularMessage - the message string to print if the count is
1. In MessageFormat style. The
{0} parameter will be replaced by the count.pluralMessage - the message string to print if the count is
0 or greater than 1. in
MessageFormat style. the {0} parameter
will be replaced by the count.singularParams - additional message parameters for the singular
message, starting with {1}.pluralParams - additional message parameters for the plural
message, starting with {1}.Copyright © 2012–2018 Emory University. All rights reserved.