LISTING 1: Sample EAServer Log Output with Tracing Flags

Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store (create container 361)
Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store (constructor)
Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store/$Activate (bind)
Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store/getlist
Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store (hash container 361)
Dec 15 12:28:43 2002: SPID: 15 DEBUG:
surfsidevideopb/n_store (link container 361)
Dec 15 12:28:43 2002: SPID: 15 TRACE:
surfsidevideopb/n_store/getlist: 1000 ms, 104 bytes in,
64544 bytes out (jsmith@65.123.23.2)

LISTING 2:Instantiating the ErrorLogging Service

// instance variable declarations protected:
boolean ib_trace = FALSE
boolean iel_jag

// sample constructor code for EAServer component
ContextKeyword lcx_key
string ls_values[]
IF this.getContextService ("Keyword", lcx_key) = 1 THEN
IF lcx_key.getContextKeywords &
("com.sybase.jaguar.component.pb.log", ls_values) = 1 THEN
ib_trace = (Upper(ls_values[1]) = "TRUE")
END IF
END IF
IF ib_trace THEN ib_trace = ( this.getContextService("ErrorLogging", iel_jag) = 1 )
IF ib_trace THEN iel_jag.log("Component trace started")