|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
Lets a custom object log a message to the application server log.
The custom object can log a message about
any operation that it performs for a task.
The Logger
interface is part of the core Identity Manager API architecture.
The ...Context
and ...Adapter
objects in each
Identity Manager API inherit Logger
methods.
The addDetail
parameter of all Logger
methods specifies whether the following task-specific information
should be added to the beginning of logged messages:
...Context
objects:
...Adapter
objects:
addDetail
set to false
:
2003-02-21 13:48:56,359 - (ims:INFO) - GetManagedObjects in org: ou=testOrg, o=test.comHere is the same log message with
addDetail
set to true
and posted from a ...Context
object:
2003-02-21 13:48:56,359 - (ims:INFO) - AdminDn=uid=administrator1,ou=testOrg,o=test.com, TaskName=ModifyUser, TaskCreationTime=13:38:55, Message: GetManagedObjects in org: ou=testOrg, o=test.comHere is the same log message with
addDetail
set to true
and posted from an ...Adapter
object:
2003-02-21 13:48:56,359 - (ims:INFO) - AdapterName: DefaultUserEventListener, Message: GetManagedObjects in org: ou=testOrg, o=test.com
Method Summary | |
---|---|
void |
logDebugMessage(java.lang.String message,
boolean addDetail)
Logs a debug message for the task. |
void |
logErrorMessage(java.lang.String message,
boolean addDetail)
Logs an error message for the task. |
void |
logInfoMessage(java.lang.String message,
boolean addDetail)
Logs an informational message for the task. |
void |
logWarningMessage(java.lang.String message,
boolean addDetail)
Logs a warning message for the task. |
Method Detail |
---|
void logDebugMessage(java.lang.String message, boolean addDetail)
message
- The message to be logged.addDetail
- A flag that indicates whether additional information about the
task should be logged. If this parameter is true
,
task-specific information is pre-pended to the logged message
.
If this parameter is false
, no additional information
is logged.void logErrorMessage(java.lang.String message, boolean addDetail)
message
- The message to be logged.addDetail
- A flag that indicates whether additional information about the
task should be logged. If this parameter is true
,
task-specific information is pre-pended to the logged message
.
If this parameter is false
, no additional information
is logged.void logInfoMessage(java.lang.String message, boolean addDetail)
message
- - The message to be logged.addDetail
- A flag that indicates whether additional information about the
task should be logged. If this parameter is true
,
task-specific information is pre-pended to the logged message
.
If this parameter is false
, no additional information
is logged.void logWarningMessage(java.lang.String message, boolean addDetail)
message
- - The message to be logged.addDetail
- A flag that indicates whether additional information about the
task should be logged. If this parameter is true
,
task-specific information is pre-pended to the logged message
.
If this parameter is false
, no additional information
is logged.
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |