README revision 4b3769ce483ece06f60f983193712492b920144f
963N/ALogging in Scripts Sample
963N/A-------------------------
1196N/ACopyright (c) 2012 ForgeRock AS
963N/AThis work is licensed under a Creative Commons Attribution-
963N/ANonCommercial-NoDerivs 3.0 Unported License. See
963N/Ahttp://creativecommons.org/licenses/by-nc-nd/3.0/
963N/A
963N/AThis sample demonstrates logging capabilities available to OpenIDM scripts,
963N/Aproviding you an alternative method for debugging your scripts.
963N/A
963N/AFor documentation pertaining to this example see:
963N/Ahttp://openidm.forgerock.org/doc/install-guide/index.html#more-sample8
963N/A
963N/ATo try the sample, follow these steps.
963N/A
963N/A 1. Start OpenIDM with the configuration for sample 8.
963N/A
963N/A $ cd /path/to/openidm
963N/A $ ./startup.sh -p samples/sample8
963N/A
963N/A 2. Run reconciliation.
963N/A
963N/A $ curl -k -u openidm-admin:openidm-admin -X POST "https://localhost:8443/openidm/recon?_action=recon&mapping=systemXmlfileAccounts_managedUser"
963N/A
963N/A 3. Observe messages from your scripts that are logged to the OpenIDM
963N/A (Felix) console:
963N/A
963N/A 2012-12-10 21:53:08:691 WARN Case no Source: the source object contains: = null [js]
963N/A 2012-12-10 21:53:08:693 WARN Case emptySource: the source object contains: = {name=DDOE1, firstname=Darth1, __UID__=1, email=[mail1@example.com], description=Created By XML1, lastname=Doe1, _id=1} [js]
963N/A 2012-12-10 21:53:08:694 WARN Case sourceDescription: the source object contains: = Created By XML1 [js]
963N/A 2012-12-10 21:53:08:695 WARN Case onCreate: the source object contains: = {name=DDOE1, firstname=Darth1, __UID__=1, email=[mail1@example.com], description=Created By XML1, lastname=Doe1, _id=1} [js]
970N/A 2012-12-10 21:53:08:817 WARN Case result: the source object contains: = {SOURCE_IGNORED={count=0, ids=[]}, UNQUALIFIED={count=0, ids=[]}, NOTVALID={count=0, ids=[]}, processed=1, UNASSIGNED={count=0, ids=[]}, TARGET_IGNORED={count=0, ids=[]}, CONFIRMED={count=0, ids=[]}, AMBIGUOUS={count=0, ids=[]}, ABSENT={count=1, ids=[1]}, MISSING={count=0, ids=[]}, SOURCE_MISSING={count=0, ids=[]}, FOUND={count=0, ids=[]}} [js]
970N/A
970N/A Read the short scripts in samples/sample8/script/ to see examples of how
970N/A to use the logger object.
970N/A