getUserLogger(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
,
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.
-
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.