This is archived documentation for an older version of Nirvana (v2.0). Please refer to documentation for the latest version if required.

Add log and audit listeners to a Nirvana Realm

This example (nRealmLogAndAuditListener.Java) demonstrates how to receive log messages from a Nirvana realm, as well as how to receive audit events from a realm.

The output is directed to stdOut as a default, but can be redirected to two files if file names are specified.

Java -DRNAME=someRNAME com.pcbsys.Nirvana.nAdminAPI.apps.nRealmLogAndAuditListener details=space separated args

where :

RNAME is the realm name of the Nirvana server. (e.g. nsp://localhost:9000 ).
-l optional logfile name to output messages passed to the logListener callback
-a optional auditfile name to output messages passed to the auditListener callback