getLogger
Logger getLogger(java.lang.String loggerId,
java.lang.String loggerResources)
throws java.util.MissingResourceException
Gets the runtime message logger which is associated with the specified
logger ID. If a message logger for the specified logger ID already exists
this will be returned to the caller. If no message logger for the specified
logger ID currently exists a new logger object will be created and
returned.
- Parameters:
loggerId
- This is the logger ID which is associated with the requested
message logger. This is a String value which will normally hold
the canonical name of the client class which is using the logger.loggerResources
- This is the name of a ResourceBundle which is to be used for
localising messages for this logger. May be null if none of the
messages require localisation.
- Returns:
- Returns a logger object which may be used for logging runtime
messages.
- Throws:
java.util.MissingResourceException
- This exception will be thrown if a set of logger resources have
been specified but cannot be found.