All Examples  Security examples

package examples.security.audit

Class Index

  • LogAuditProvider
  • about this example

    This example is a simple implementation of the WebLogic Server audit SPI. It sends interesting security events to the WebLogic Server log.

    how to use this example

    Follow these steps to set up this example:

    1. Set up your development environment, as described in Setting your development environment.

    2. Compile the LogAuditProvider.java file with a command, such as this one for Windows NT:
        javac -d %SERVER_CLASSES% LogAuditProvider.java

    3. Edit the weblogic.properties file and add this property:
        weblogic.security.audit.provider=\
                examples.security.audit.LogAuditProvider

    4. Start, or restart WebLogic Server.

    You can identify the messages LogAuditProvider writes in the WebLogic Server by searching for the string "<Audit>".