getUserLogger(String, String, User) method
Returns an instance of UserLogger that uses the named Logger instance to log messages to the Agentry server for the given user.
Syntax
public static
UserLogger
getUserLogger
(
String
name
,
String
resourceBundleName
,
User
user
)
Parameters
-
name –
The logger name. Note that the same Logger object may be used by multiple UserLogger objects to log messages for multiple users.
-
resourceBundleName –
The name of a resource bundle to use for localizing messages for this logger. May be null if no localization is necessary.
-
user –
The user to log messages for.
Returns
A new UserLogger object, or null if Logger.getLogger(String) would have returned null for the same logger name.