public class Logging extends Object
java.util.logging
. The default logger name is gov.nasa.worldwind
. The logger name is
configurable via Configuration
.Configuration
,
java.util.logging
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_MESSAGE_REPEAT |
protected static String |
MESSAGE_BUNDLE_NAME |
Modifier and Type | Method and Description |
---|---|
static int |
getMaxMessageRepeatCount()
Indicates the maximum number of times the same log message should be repeated when generated in the same context,
such as within a loop over renderables when operations in the loop consistently fail.
|
static String |
getMessage(String property)
Retrieves a message from the World Wind message resource bundle.
|
static String |
getMessage(String property,
Object... args)
Retrieves a message from the World Wind message resource bundle formatted with specified arguments.
|
static String |
getMessage(String property,
String arg)
Retrieves a message from the World Wind message resource bundle formatted with a single argument.
|
static Logger |
logger()
Returns the World Wind logger.
|
static Logger |
logger(String loggerName)
Returns a specific logger.
|
protected static final int MAX_MESSAGE_REPEAT
protected static final String MESSAGE_BUNDLE_NAME
public static int getMaxMessageRepeatCount()
public static String getMessage(String property)
property
- the property identifying which message to retrieve.public static String getMessage(String property, Object... args)
MessageFormat
.property
- the property identifying which message to retrieve.args
- the arguments referenced by the format string identified property
.MessageFormat
public static String getMessage(String property, String arg)
MessageFormat
.property
- the property identifying which message to retrieve.arg
- the single argument referenced by the format string identified property
.MessageFormat
public static Logger logger()
public static Logger logger(String loggerName)
Configuration
to determine the configured
World Wind logger.
This is needed by Configuration
to avoid calls back into itself when its singleton
instance is not yet instantiated.loggerName
- the name of the logger to use.