- java.lang.Object
-
- java.lang.System.LoggerFinder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LoggerFinder()
Checks needed runtime permissions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description System.Logger
getLocalizedLogger(String loggerName, ResourceBundle bundle, Module callerModule)
Returns a localizable instance of Logger for the given moduleabstract System.Logger
getLogger(String loggerName, Module callerModule)
Returns an instance of Logger for the given modulestatic System.LoggerFinder
getLoggerFinder()
Returns the LoggerFinder instance
-
-
-
Constructor Detail
-
LoggerFinder
protected LoggerFinder()
Checks needed runtime permissions- Throws:
SecurityException
- if RuntimePermission("loggerFinder") is not allowed
-
-
Method Detail
-
getLocalizedLogger
public System.Logger getLocalizedLogger(String loggerName, ResourceBundle bundle, Module callerModule)
Returns a localizable instance of Logger for the given module- Parameters:
loggerName
- The name of the loggerbundle
- A resource bundle; can be nullcallerModule
- The module for which the logger is being requested- Returns:
- an instance of Logger
- Throws:
NullPointerException
- if loggerName or callerModule is nullSecurityException
- if RuntimePermission("loggerFinder") is not allowed
-
getLogger
public abstract System.Logger getLogger(String loggerName, Module callerModule)
Returns an instance of Logger for the given module- Parameters:
loggerName
- The name of the loggercallerModule
- The module for which the logger is being requested- Returns:
- a Logger suitable for use within the given module
- Throws:
NullPointerException
- if loggerName or callerModule is nullSecurityException
- if RuntimePermission("loggerFinder") is not allowed
-
getLoggerFinder
public static System.LoggerFinder getLoggerFinder()
Returns the LoggerFinder instance- Returns:
- the LoggerFinder instance.
- Throws:
SecurityException
- if RuntimePermission("loggerFinder") is not allowed
-
-