Package com.sun.identity.cli
Class LogWriter
- java.lang.Object
-
- com.sun.identity.cli.LogWriter
-
public class LogWriter extends Object
Writes audit log entries.
-
-
Field Summary
Fields Modifier and Type Field Description static intLOG_ACCESSAccess Log Type.static intLOG_ERRORError Log Type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlog(CommandManager mgr, int type, Level level, String msgid, String[] msgdata, SSOToken ssoToken)Writes to log.
-
-
-
Field Detail
-
LOG_ACCESS
public static final int LOG_ACCESS
Access Log Type.- See Also:
- Constant Field Values
-
LOG_ERROR
public static final int LOG_ERROR
Error Log Type.- See Also:
- Constant Field Values
-
-
Method Detail
-
log
public static void log(CommandManager mgr, int type, Level level, String msgid, String[] msgdata, SSOToken ssoToken) throws CLIException
Writes to log.- Parameters:
mgr- Command Manager Object.type- Type of log message.level- Logging level of the message.msgid- ID for message.msgdata- array of log message "data".ssoToken- Single Sign On Token of the user who committed the operation.- Throws:
CLIException- if log cannot be written.
-
-