Corporation Server User Manual
logEvent(Map <Object, Object> event, String category) Method
Accounting Event API C-3
logEvent(SipServletResponse resp, Map<Object, Object> additional)
Method
The public void logEvent(SipServletResponse resp, Map<Object,
Object> additional) method logs an event with the characteristic response
attributes listed in Table C–2 with any additional event attributes provided. The event
will be logged to the following full Log4j category name:
"eventlogger." + loggerName + ".RESPONSE." + method + "." + statuscode.
Table C–2 describes the attributes for public void
logEvent(SipServletResponse resp, Map<Object, Object>
additional).
logEvent(Map <Object, Object> event, String category) Method
The public void logEvent(Map <Object, Object> event, String
category) method is a generic method that can be used to log any kind of event in
the form of an attribute map. The Service attribute listed in Table C–3 is also added
to the attribute map. The event will be logged to the full Log4j category name, which
can take either of the following two forms:
■ "eventlogger." + loggerName
■ "eventlogger." + loggerName + "." + category if a non-null category is provided.
Table C–3 lists the attributes for this method.
Table C–2 Response Attributes for the logEvent(SipServletResponse resp, Map<Object,
Object> additional) Method
Attribute Description
StatusCode The response status code.
Method The method value.
To The To header value.
From The From header value.
Call-ID The Call-ID header value.
CSeq The CSeq header value.
Via A string of all Via header values, separated by semicolons (;).
Content-Type
The Content-Type header value, or
"".
Content-Length
The Content-Length header value, or "".
MEDIA A string of all SDP media line values (that is, the portion
following m=), which are separated by semicolons(;). Only
include this attribute for INVITE requests when SDP content is
not present.
Service The name of the service generating the event (that is, the full
Log4j category name).